port_undef.inc 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134
  1. // Protocol Buffers - Google's data interchange format
  2. // Copyright 2008 Google Inc. All rights reserved.
  3. // https://developers.google.com/protocol-buffers/
  4. //
  5. // Redistribution and use in source and binary forms, with or without
  6. // modification, are permitted provided that the following conditions are
  7. // met:
  8. //
  9. // * Redistributions of source code must retain the above copyright
  10. // notice, this list of conditions and the following disclaimer.
  11. // * Redistributions in binary form must reproduce the above
  12. // copyright notice, this list of conditions and the following disclaimer
  13. // in the documentation and/or other materials provided with the
  14. // distribution.
  15. // * Neither the name of Google Inc. nor the names of its
  16. // contributors may be used to endorse or promote products derived from
  17. // this software without specific prior written permission.
  18. //
  19. // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
  20. // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
  21. // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
  22. // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
  23. // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  24. // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  25. // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
  26. // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
  27. // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  28. // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
  29. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
  30. // #undefs all macros defined in port_def.inc. See comments in port_def.inc
  31. // for more info.
  32. #ifndef PROTOBUF_NAMESPACE
  33. #error "port_undef.inc must be included after port_def.inc"
  34. #endif
  35. #undef PROTOBUF_NAMESPACE
  36. #undef PROTOBUF_NAMESPACE_ID
  37. #undef PROTOBUF_ALWAYS_INLINE
  38. #undef PROTOBUF_NDEBUG_INLINE
  39. #undef PROTOBUF_MUSTTAIL
  40. #undef PROTOBUF_TAILCALL
  41. #undef PROTOBUF_COLD
  42. #undef PROTOBUF_NOINLINE
  43. #undef PROTOBUF_SECTION_VARIABLE
  44. #undef PROTOBUF_DEPRECATED
  45. #undef PROTOBUF_DEPRECATED_ENUM
  46. #undef PROTOBUF_DEPRECATED_MSG
  47. #undef PROTOBUF_FUNC_ALIGN
  48. #undef PROTOBUF_RETURNS_NONNULL
  49. #undef PROTOBUF_ATTRIBUTE_REINITIALIZES
  50. #undef PROTOBUF_RTTI
  51. #undef PROTOBUF_VERSION
  52. #undef PROTOBUF_VERSION_SUFFIX
  53. #undef PROTOBUF_FIELD_OFFSET
  54. #undef PROTOBUF_MIN_HEADER_VERSION_FOR_PROTOC
  55. #undef PROTOBUF_MIN_PROTOC_VERSION
  56. #undef PROTOBUF_PREDICT_TRUE
  57. #undef PROTOBUF_PREDICT_FALSE
  58. #undef PROTOBUF_FALLTHROUGH_INTENDED
  59. #undef PROTOBUF_EXPORT
  60. #undef PROTOC_EXPORT
  61. #undef PROTOBUF_MUST_USE_RESULT
  62. #undef PROTOBUF_MUST_USE_EXTRACT_RESULT
  63. #undef PROTOBUF_FORCE_COPY_IN_RELEASE
  64. #undef PROTOBUF_FORCE_COPY_IN_SWAP
  65. #undef PROTOBUF_NAMESPACE_OPEN
  66. #undef PROTOBUF_NAMESPACE_CLOSE
  67. #undef PROTOBUF_UNUSED
  68. #undef PROTOBUF_ASSUME
  69. #undef PROTOBUF_EXPORT_TEMPLATE_DECLARE
  70. #undef PROTOBUF_EXPORT_TEMPLATE_DEFINE
  71. #undef PROTOBUF_ALIGNAS
  72. #undef PROTOBUF_FINAL
  73. #undef PROTOBUF_THREAD_LOCAL
  74. #undef PROTOBUF_MESSAGE_OWNED_ARENA_EXPERIMENT
  75. #undef PROTOBUF_CONSTINIT
  76. #undef PROTOBUF_ATTRIBUTE_WEAK
  77. #undef PROTOBUF_ATTRIBUTE_NO_DESTROY
  78. #undef PROTOBUF_ATTRIBUTE_INIT_PRIORITY
  79. #undef PROTOBUF_PRAGMA_INIT_SEG
  80. #undef PROTOBUF_ASAN
  81. #undef PROTOBUF_MSAN
  82. #undef PROTOBUF_TSAN
  83. #undef PROTOBUF_EXCLUSIVE_LOCKS_REQUIRED
  84. #undef PROTOBUF_LOCKS_EXCLUDED
  85. #undef PROTOBUF_NO_THREAD_SAFETY_ANALYSIS
  86. #undef PROTOBUF_GUARDED_BY
  87. #ifdef PROTOBUF_FUTURE_BREAKING_CHANGES
  88. #undef PROTOBUF_FUTURE_BREAKING_CHANGES
  89. #endif
  90. // Restore macro that may have been #undef'd in port_def.inc.
  91. #ifdef _MSC_VER
  92. #pragma pop_macro("CREATE_NEW")
  93. #pragma pop_macro("DELETE")
  94. #pragma pop_macro("DOUBLE_CLICK")
  95. #pragma pop_macro("ERROR")
  96. #pragma pop_macro("ERROR_BUSY")
  97. #pragma pop_macro("ERROR_INSTALL_FAILED")
  98. #pragma pop_macro("ERROR_NOT_FOUND")
  99. #pragma pop_macro("GetMessage")
  100. #pragma pop_macro("IGNORE")
  101. #pragma pop_macro("IN")
  102. #pragma pop_macro("INPUT_KEYBOARD")
  103. #pragma pop_macro("OUT")
  104. #pragma pop_macro("OPTIONAL")
  105. #pragma pop_macro("min")
  106. #pragma pop_macro("max")
  107. #pragma pop_macro("NEAR")
  108. #pragma pop_macro("NO_DATA")
  109. #pragma pop_macro("NO_ERROR")
  110. #pragma pop_macro("REASON_UNKNOWN")
  111. #pragma pop_macro("SERVICE_DISABLED")
  112. #pragma pop_macro("SEVERITY_ERROR")
  113. #pragma pop_macro("STRICT")
  114. #pragma pop_macro("timezone")
  115. #endif
  116. #if defined(__clang__) || defined(__GNUC__) || defined(_MSC_VER)
  117. #pragma pop_macro("DEBUG")
  118. #endif // defined(__clang__) || defined(__GNUC__) || defined(_MSC_VER)
  119. #if defined(__clang__)
  120. #pragma clang diagnostic pop
  121. #elif defined(__GNUC__)
  122. #pragma GCC diagnostic pop
  123. #endif
  124. // Pop the warning(push) from port_def.inc
  125. #if _MSC_VER
  126. #pragma warning(pop)
  127. #endif