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})
36
36
include (CPack )
37
37
TEST_BIG_ENDIAN (BSON_BIG_ENDIAN )
38
38
39
- # These need proper checks like automake.
40
- set (BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES 0 )
41
-
42
39
#librt needed on linux for clock_gettime
43
40
find_library (RT_LIBRARY rt )
44
41
if (RT_LIBRARY )
Original file line number Diff line number Diff line change 42
42
#endif
43
43
44
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
45
/*
56
46
* Define to 1 if you have clock_gettime() available.
57
47
*/
Original file line number Diff line number Diff line change @@ -46,14 +46,7 @@ BSON_BEGIN_DECLS
46
46
#define bson_once pthread_once
47
47
#define BSON_ONCE_FUN (n ) void n (void)
48
48
#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
55
49
#define BSON_ONCE_INIT PTHREAD_ONCE_INIT
56
- #endif
57
50
#else
58
51
#define bson_mutex_t CRITICAL_SECTION
59
52
#define bson_mutex_init InitializeCriticalSection
You can’t perform that action at this time.
0 commit comments