prelude.hpp 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // Copyright 2014 MongoDB Inc.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // compiler.hpp
  15. #pragma push_macro("BSONCXX_INLINE")
  16. #undef BSONCXX_INLINE
  17. #pragma push_macro("BSONCXX_CALL")
  18. #undef BSONCXX_CALL
  19. // src/bsoncxx/config/config.hpp.in
  20. #pragma push_macro("BSONCXX_INLINE_NAMESPACE_BEGIN")
  21. #undef BSONCXX_INLINE_NAMESPACE_BEGIN
  22. #pragma push_macro("BSONCXX_INLINE_NAMESPACE_END")
  23. #undef BSONCXX_INLINE_NAMESPACE_END
  24. #pragma push_macro("BSONCXX_POLY_USE_MNMLSTC")
  25. #undef BSONCXX_POLY_USE_MNMLSTC
  26. #pragma push_macro("BSONCXX_POLY_USE_STD_EXPERIMENTAL")
  27. #undef BSONCXX_POLY_USE_STD_EXPERIMENTAL
  28. #pragma push_macro("BSONCXX_POLY_USE_SYSTEM_MNMLSTC")
  29. #undef BSONCXX_POLY_USE_SYSTEM_MNMLSTC
  30. #pragma push_macro("BSONCXX_POLY_USE_BOOST")
  31. #undef BSONCXX_POLY_USE_BOOST
  32. // src/bsoncxx/config/version.hpp.in
  33. #pragma push_macro("BSONCXX_VERSION_EXTRA")
  34. #undef BSONCXX_VERSION_EXTRA
  35. #pragma push_macro("BSONCXX_VERSION_MAJOR")
  36. #undef BSONCXX_VERSION_MAJOR
  37. #pragma push_macro("BSONCXX_VERSION_MINOR")
  38. #undef BSONCXX_VERSION_MINOR
  39. #pragma push_macro("BSONCXX_VERSION_PATCH")
  40. #undef BSONCXX_VERSION_PATCH
  41. // src/bsoncxx/types.hpp
  42. #pragma push_macro("BSONCXX_ENUM")
  43. #undef BSONCXX_ENUM
  44. // export.hpp (generated by cmake)
  45. #pragma push_macro("BSONCXX_API_H")
  46. #undef BSONCXX_API_H
  47. #pragma push_macro("BSONCXX_API")
  48. #undef BSONCXX_API
  49. #pragma push_macro("BSONCXX_PRIVATE")
  50. #undef BSONCXX_PRIVATE
  51. #pragma push_macro("BSONCXX_DEPRECATED")
  52. #undef BSONCXX_DEPRECATED
  53. #pragma push_macro("BSONCXX_DEPRECATED_EXPORT")
  54. #undef BSONCXX_DEPRECATED_EXPORT
  55. #pragma push_macro("BSONCXX_DEPRECATED_NO_EXPORT")
  56. #undef BSONCXX_DEPRECATED_NO_EXPORT
  57. #pragma push_macro("DEFINE_NO_DEPRECATED")
  58. #undef DEFINE_NO_DEPRECATED
  59. #pragma push_macro("BSONCXX_NO_DEPRECATED")
  60. #undef BSONCXX_NO_DEPRECATED
  61. #include <bsoncxx/config/compiler.hpp>
  62. #include <bsoncxx/config/config.hpp>
  63. #include <bsoncxx/config/export.hpp>
  64. #include <bsoncxx/config/version.hpp>
  65. #pragma push_macro("BSONCXX_UNREACHABLE")
  66. #undef BSONCXX_UNREACHABLE
  67. #define BSONCXX_UNREACHABLE std::abort()