File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ enum mcommon_memory_order {
57
57
#ifdef MCOMMON_USE_LEGACY_GCC_ATOMICS
58
58
#undef BSON_IF_GNU_LIKE
59
59
#define BSON_IF_GNU_LIKE (...)
60
- #define BSON_IF_MSVC (...)
61
60
#define MCOMMON_IF_GNU_LEGACY_ATOMICS (...) __VA_ARGS__
62
61
#else
63
62
#define MCOMMON_IF_GNU_LEGACY_ATOMICS (...)
Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ enum BSON_GNUC_DEPRECATED bson_memory_order {
78
78
#ifdef BSON_USE_LEGACY_GCC_ATOMICS
79
79
#undef BSON_IF_GNU_LIKE
80
80
#define BSON_IF_GNU_LIKE (...)
81
- #define BSON_IF_MSVC (...)
82
81
#define BSON_IF_GNU_LEGACY_ATOMICS (...) __VA_ARGS__
83
82
#else
84
83
#define BSON_IF_GNU_LEGACY_ATOMICS (...)
Original file line number Diff line number Diff line change @@ -189,6 +189,10 @@ typedef signed char bool;
189
189
#define BSON_IF_MSVC (...)
190
190
/** Expands the arguments if compiling with GCC or Clang, otherwise empty */
191
191
#define BSON_IF_GNU_LIKE (...) __VA_ARGS__
192
+ #else
193
+ /** Unsupported compiler. **/
194
+ #define BSON_IF_MSVC (...)
195
+ #define BSON_IF_GNU_LIKE (...)
192
196
#endif
193
197
194
198
#ifdef BSON_OS_WIN32
You can’t perform that action at this time.
0 commit comments