1 /* $Id: cpl_config_extras.h e4dbe6c45993f8567c5f711991cfd35e3a24cfe0 2020-03-25 15:38:54 +0100 Even Rouault $ */
2 
3 #ifndef INCLUDED_CPL_CONFIG_EXTRAS
4 #define INCLUDED_CPL_CONFIG_EXTRAS
5 
6 #if defined(__APPLE__)
7 
8 #ifdef __LP64__
9   #define SIZEOF_UNSIGNED_LONG 8
10 #else
11   #define SIZEOF_UNSIGNED_LONG 4
12 #endif
13 
14 #ifdef __LP64__
15   #define SIZEOF_VOIDP 8
16 #else
17   #define SIZEOF_VOIDP 4
18 #endif
19 
20 #ifdef __BIG_ENDIAN__
21   #define WORDS_BIGENDIAN 1
22 #else
23   #undef WORDS_BIGENDIAN
24 #endif
25 
26 #undef VSI_STAT64
27 #undef VSI_STAT64_T
28 
29 #define VSI_STAT64 stat
30 #define VSI_STAT64_T stat
31 
32 #endif // APPLE
33 
34 #endif // INCLUDED_CPL_CONFIG_EXTRAS
35