Skip to content

CXX-2754 Add MONGOCXX_COMPILER_* macros to push-pop headers #1021

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Sep 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/mongocxx/config/private/postlude.hh
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,12 @@
// NOTE: Pop any macros here that are defined by the headers included
// in private/prelude.hpp.

// src/mongocxx/config/private/config.hh (generated by cmake)
#undef MONGOCXX_ENABLE_SSL
#pragma pop_macro("MONGOCXX_ENABLE_SSL")
#undef MONGOCXX_COMPILER_ID
#pragma pop_macro("MONGOCXX_COMPILER_ID")
#undef MONGOCXX_COMPILER_VERSION
#pragma pop_macro("MONGOCXX_COMPILER_VERSION")

#include <mongocxx/config/postlude.hpp>
5 changes: 5 additions & 0 deletions src/mongocxx/config/private/prelude.hh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,12 @@
// NOTE: Push any macros here that are defined by the following
// headers here.

// src/mongocxx/config/private/config.hh (generated by cmake)
#pragma push_macro("MONGOCXX_ENABLE_SSL")
#undef MONGOCXX_ENABLE_SSL
#pragma push_macro("MONGOCXX_COMPILER_ID")
#undef MONGOCXX_COMPILER_ID
#pragma push_macro("MONGOCXX_COMPILER_VERSION")
#undef MONGOCXX_COMPILER_VERSION

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