Skip to content

Commit 60a3e7c

Browse files
authored
CXX-2754 Add MONGOCXX_COMPILER_* macros to push-pop headers (#1021)
1 parent b133ac5 commit 60a3e7c

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/mongocxx/config/private/postlude.hh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,12 @@
1515
// NOTE: Pop any macros here that are defined by the headers included
1616
// in private/prelude.hpp.
1717

18+
// src/mongocxx/config/private/config.hh (generated by cmake)
1819
#undef MONGOCXX_ENABLE_SSL
1920
#pragma pop_macro("MONGOCXX_ENABLE_SSL")
21+
#undef MONGOCXX_COMPILER_ID
22+
#pragma pop_macro("MONGOCXX_COMPILER_ID")
23+
#undef MONGOCXX_COMPILER_VERSION
24+
#pragma pop_macro("MONGOCXX_COMPILER_VERSION")
2025

2126
#include <mongocxx/config/postlude.hpp>

src/mongocxx/config/private/prelude.hh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,12 @@
1717
// NOTE: Push any macros here that are defined by the following
1818
// headers here.
1919

20+
// src/mongocxx/config/private/config.hh (generated by cmake)
2021
#pragma push_macro("MONGOCXX_ENABLE_SSL")
2122
#undef MONGOCXX_ENABLE_SSL
23+
#pragma push_macro("MONGOCXX_COMPILER_ID")
24+
#undef MONGOCXX_COMPILER_ID
25+
#pragma push_macro("MONGOCXX_COMPILER_VERSION")
26+
#undef MONGOCXX_COMPILER_VERSION
2227

2328
#include <mongocxx/config/private/config.hh>

0 commit comments

Comments
 (0)