Ticket #18418: patch_cpl_config_h

File patch_cpl_config_h, 781 bytes (added by seanasy@…, 15 years ago)
Line 
1--- port/cpl_config.h.orig      2008-12-20 15:12:09.000000000 +0100
2+++ port/cpl_config.h   2008-12-20 15:16:54.000000000 +0100
3@@ -140,13 +140,26 @@
4 #define SIZEOF_INT 4
5 
6 /* The size of `long', as computed by sizeof. */
7-#define SIZEOF_LONG 8
8+#if defined (__LP64__)
9+  #define SIZEOF_LONG 8
10+#else
11+  #define SIZEOF_LONG 4
12+#endif
13 
14 /* The size of `unsigned long', as computed by sizeof. */
15-#define SIZEOF_UNSIGNED_LONG 8
16+#if defined (__LP64__)
17+  #define SIZEOF_UNSIGNED_LONG 8
18+#else
19+  #define SIZEOF_UNSIGNED_LONG 4
20+#endif
21+
22 
23 /* The size of `void*', as computed by sizeof. */
24-#define SIZEOF_VOIDP 8
25+#if defined (__LP64__)
26+  #define SIZEOF_VOIDP 8
27+#else
28+  #define SIZEOF_VOIDP 4
29+#endif
30 
31 /* Define to 1 if you have the ANSI C header files. */
32 #define STDC_HEADERS 1