We have a config check that is now always false:
/* * Define to 1 if your system requires {} around PTHREAD_ONCE_INIT. * This is typically just Solaris 8-10. */ #define BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES 0 #if BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES != 1 # undef BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES #endif
Since we switched to CMake, BSON_PTHREAD_ONCE_INIT_NEEDS_BRACES is always 0. Even before then, we had dropped Solaris, and all known platforms do not need braces in a statement like this one:
pthread_once_t once = PTHREAD_ONCE_INIT;
- is depended on by
-
CDRIVER-2695 Share threading config checks between libbson and libmongoc
- Closed