Browse code

fix sizeof void* macro for x64

aCaB authored on 2010/05/16 05:46:08
Showing 2 changed files
... ...
@@ -29,6 +29,12 @@ extern "C"
29 29
 typedef unsigned short mode_t;
30 30
 #endif
31 31
 
32
+#ifdef _WIN64
33
+#define SIZEOF_VOID_P 8
34
+#else
35
+#define SIZEOF_VOID_P 4
36
+#endif
37
+
32 38
 #define strcasecmp lstrcmpi
33 39
 #define strncasecmp strnicmp
34 40
 #define mkdir(path, mode) mkdir(path)
... ...
@@ -174,7 +174,7 @@ my %CONF = (
174 174
     'SIZEOF_LONG' => '4',
175 175
     'SIZEOF_LONG_LONG' => '8',
176 176
     'SIZEOF_SHORT' => '2',
177
-    'SIZEOF_VOID_P' => '4',
177
+    'SIZEOF_VOID_P' => -1,
178 178
     'STDC_HEADERS' => '1',
179 179
     'SUPPORT_IPv6' => -1,
180 180
     'USE_MPOOL' => 1,