/* $Id: cpl_config_extras.h e4dbe6c45993f8567c5f711991cfd35e3a24cfe0 2020-03-25 15:38:54 +0100 Even Rouault $ */

#ifndef INCLUDED_CPL_CONFIG_EXTRAS
#define INCLUDED_CPL_CONFIG_EXTRAS

#if defined(__APPLE__)

#ifdef __LP64__
  #define SIZEOF_UNSIGNED_LONG 8
#else
  #define SIZEOF_UNSIGNED_LONG 4
#endif

#ifdef __LP64__
  #define SIZEOF_VOIDP 8
#else
  #define SIZEOF_VOIDP 4
#endif

#ifdef __BIG_ENDIAN__
  #define WORDS_BIGENDIAN 1
#else
  #undef WORDS_BIGENDIAN
#endif

#undef VSI_STAT64
#undef VSI_STAT64_T

#define VSI_STAT64 stat
#define VSI_STAT64_T stat

#endif // APPLE

#endif // INCLUDED_CPL_CONFIG_EXTRAS
