File tree Expand file tree Collapse file tree 3 files changed +0
-20
lines changed Expand file tree Collapse file tree 3 files changed +0
-20
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,6 @@ set (CPACK_PACKAGE_VERSION_MINOR ${BSON_MINOR_VERSION})
3636include (CPack)
3737TEST_BIG_ENDIAN (BSON_BIG_ENDIAN)
3838
39- # These need proper checks like automake.
40- set (BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES 0)
41-
4239#librt needed on linux for clock_gettime
4340find_library (RT_LIBRARY rt)
4441if (RT_LIBRARY)
Original file line number Diff line number Diff line change 4242#endif
4343
4444
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-
5545/*
5646 * Define to 1 if you have clock_gettime() available.
5747 */
Original file line number Diff line number Diff line change @@ -46,14 +46,7 @@ BSON_BEGIN_DECLS
4646#define bson_once pthread_once
4747#define BSON_ONCE_FUN (n ) void n (void)
4848#define BSON_ONCE_RETURN return
49- #ifdef BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES
50- #define BSON_ONCE_INIT \
51- { \
52- PTHREAD_ONCE_INIT \
53- }
54- #else
5549#define BSON_ONCE_INIT PTHREAD_ONCE_INIT
56- #endif
5750#else
5851#define bson_mutex_t CRITICAL_SECTION
5952#define bson_mutex_init InitializeCriticalSection
You can’t perform that action at this time.
0 commit comments