Ticket #24877: patch_cpl_config_h

File patch_cpl_config_h, 1.2 KB (added by Veence (Vincent), 14 years ago)

patch for port/cpl_config.h

Line 
1--- port/cpl_config.h.orig      2010-05-13 13:38:03.000000000 +0200
2+++ port/cpl_config.h   2010-05-13 13:39:18.000000000 +0200
3@@ -129,9 +129,6 @@
4 /* Define to 1 if you have the `vsnprintf' function. */
5 #define HAVE_VSNPRINTF 1
6 
7-/* Set the native cpu bit order (FILLORDER_LSB2MSB or FILLORDER_MSB2LSB) */
8-#define HOST_FILLORDER FILLORDER_LSB2MSB
9-
10 /* Define to the sub-directory in which libtool stores uninstalled libraries.
11    */
12 #define LT_OBJDIR ".libs/"
13@@ -145,12 +142,6 @@
14 /* The size of `long', as computed by sizeof. */
15 /* #undef SIZEOF_LONG */
16 
17-/* The size of `unsigned long', as computed by sizeof. */
18-#define SIZEOF_UNSIGNED_LONG 8
19-
20-/* The size of `void*', as computed by sizeof. */
21-#define SIZEOF_VOIDP 8
22-
23 /* Define to 1 if you have the ANSI C header files. */
24 #define STDC_HEADERS 1
25 
26@@ -193,20 +184,20 @@
27 #ifdef __BIG_ENDIAN__
28   #define HOST_FILLORDER FILLORDER_LSB2MSB
29 #else
30-  #define HOST_FILLORDER FILLORDER_LSB2MSB
31+  #define HOST_FILLORDER FILLORDER_MSB2LSB
32 #endif
33 
34 
35 #ifdef __LP64__
36   #define SIZEOF_UNSIGNED_LONG 8
37 #else
38-  #define SIZEOF_UNSIGNED_LONG 8
39+  #define SIZEOF_UNSIGNED_LONG 4
40 #endif
41 
42 #ifdef __LP64__
43   #define SIZEOF_VOIDP 8
44 #else
45-  #define SIZEOF_VOIDP 8
46+  #define SIZEOF_VOIDP 4
47 #endif
48 
49 #ifdef __BIG_ENDIAN__