Mercurial > retraceit
comparison src/strhelp.c @ 112:9daf778feaf1 1.4
Fix usage of WIN32 macro. With c++11 this is no longer set.
_WIN32 is the better macro to use anyway.
author | Andre Heinecke <andre.heinecke@intevation.de> |
---|---|
date | Thu, 08 Dec 2016 15:34:07 +0100 |
parents | 64a51a42c01f |
children |
comparison
equal
deleted
inserted
replaced
111:e6b8f1590a01 | 112:9daf778feaf1 |
---|---|
16 #include <stdio.h> | 16 #include <stdio.h> |
17 #include <stdlib.h> | 17 #include <stdlib.h> |
18 #include <string.h> | 18 #include <string.h> |
19 #include <assert.h> | 19 #include <assert.h> |
20 | 20 |
21 #ifdef WIN32 | 21 #ifdef _WIN32 |
22 #include <windows.h> | 22 #include <windows.h> |
23 #endif | 23 #endif |
24 | 24 |
25 static void | 25 static void |
26 out_of_core(void) | 26 out_of_core(void) |
192 out_of_core(); | 192 out_of_core(); |
193 | 193 |
194 return ret; | 194 return ret; |
195 } | 195 } |
196 | 196 |
197 #ifdef WIN32 | 197 #ifdef _WIN32 |
198 /* Adapted from GPGOL rev. e512053 */ | 198 /* Adapted from GPGOL rev. e512053 */ |
199 char * | 199 char * |
200 wchar_to_utf8 (const wchar_t *string, size_t len) | 200 wchar_to_utf8 (const wchar_t *string, size_t len) |
201 { | 201 { |
202 int n, ilen; | 202 int n, ilen; |