1#ifndef BSON_CONFIG_H 2#define BSON_CONFIG_H 3 4/* 5 * Define to 1234 for Little Endian, 4321 for Big Endian. 6 */ 7#define BSON_BYTE_ORDER @BSON_BYTE_ORDER@ 8 9 10/* 11 * Define to 1 if you have stdbool.h 12 */ 13#define BSON_HAVE_STDBOOL_H @BSON_HAVE_STDBOOL_H@ 14#if BSON_HAVE_STDBOOL_H != 1 15# undef BSON_HAVE_STDBOOL_H 16#endif 17 18 19/* 20 * Define to 1 for POSIX-like systems, 2 for Windows. 21 */ 22#define BSON_OS @BSON_OS@ 23 24 25/* 26 * Define to 1 if we have access to GCC 32-bit atomic builtins. 27 * While this requires GCC 4.1+ in most cases, it is also architecture 28 * dependent. For example, some PPC or ARM systems may not have it even 29 * if it is a recent GCC version. 30 */ 31#define BSON_HAVE_ATOMIC_32_ADD_AND_FETCH @BSON_HAVE_ATOMIC_32_ADD_AND_FETCH@ 32#if BSON_HAVE_ATOMIC_32_ADD_AND_FETCH != 1 33# undef BSON_HAVE_ATOMIC_32_ADD_AND_FETCH 34#endif 35 36/* 37 * Similarly, define to 1 if we have access to GCC 64-bit atomic builtins. 38 */ 39#define BSON_HAVE_ATOMIC_64_ADD_AND_FETCH @BSON_HAVE_ATOMIC_64_ADD_AND_FETCH@ 40#if BSON_HAVE_ATOMIC_64_ADD_AND_FETCH != 1 41# undef BSON_HAVE_ATOMIC_64_ADD_AND_FETCH 42#endif 43 44 45/* 46 * Define to 1 if your system requires {} around PTHREAD_ONCE_INIT. 47 * This is typically just Solaris 8-10. 48 */ 49#define BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES @BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES@ 50#if BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES != 1 51# undef BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES 52#endif 53 54 55/* 56 * Define to 1 if you have clock_gettime() available. 57 */ 58#define BSON_HAVE_CLOCK_GETTIME @BSON_HAVE_CLOCK_GETTIME@ 59#if BSON_HAVE_CLOCK_GETTIME != 1 60# undef BSON_HAVE_CLOCK_GETTIME 61#endif 62 63 64/* 65 * Define to 1 if you have strnlen available on your platform. 66 */ 67#define BSON_HAVE_STRNLEN @BSON_HAVE_STRNLEN@ 68#if BSON_HAVE_STRNLEN != 1 69# undef BSON_HAVE_STRNLEN 70#endif 71 72 73/* 74 * Define to 1 if you have snprintf available on your platform. 75 */ 76#define BSON_HAVE_SNPRINTF @BSON_HAVE_SNPRINTF@ 77#if BSON_HAVE_SNPRINTF != 1 78# undef BSON_HAVE_SNPRINTF 79#endif 80 81 82/* 83 * Define to 1 if you have gmtime_r available on your platform. 84 */ 85#define BSON_HAVE_GMTIME_R @BSON_HAVE_GMTIME_R@ 86#if BSON_HAVE_GMTIME_R != 1 87# undef BSON_HAVE_GMTIME_R 88#endif 89 90 91/* 92 * Define to 1 if you have reallocf available on your platform. 93 */ 94#define BSON_HAVE_REALLOCF @BSON_HAVE_REALLOCF@ 95#if BSON_HAVE_REALLOCF != 1 96# undef BSON_HAVE_REALLOCF 97#endif 98 99 100/* 101 * Define to 1 if you have struct timespec available on your platform. 102 */ 103#define BSON_HAVE_TIMESPEC @BSON_HAVE_TIMESPEC@ 104#if BSON_HAVE_TIMESPEC != 1 105# undef BSON_HAVE_TIMESPEC 106#endif 107 108 109/* 110 * Define to 1 if you want extra aligned types in libbson 111 */ 112#define BSON_EXTRA_ALIGN @BSON_EXTRA_ALIGN@ 113#if BSON_EXTRA_ALIGN != 1 114# undef BSON_EXTRA_ALIGN 115#endif 116 117 118/* 119 * Define to 1 if you have SYS_gettid syscall 120 */ 121#define BSON_HAVE_SYSCALL_TID @BSON_HAVE_SYSCALL_TID@ 122#if BSON_HAVE_SYSCALL_TID != 1 123# undef BSON_HAVE_SYSCALL_TID 124#endif 125 126 127#endif /* BSON_CONFIG_H */ 128