Debian Codegraph @

extra/protobuf/protobuf-24.4/src/google/protobuf/port_undef.inc

raw
1 // -*- c++ -*-
2 // Protocol Buffers - Google's data interchange format
3 // Copyright 2008 Google Inc. All rights reserved.
4 // https://developers.google.com/protocol-buffers/
5 //
6 // Redistribution and use in source and binary forms, with or without
7 // modification, are permitted provided that the following conditions are
8 // met:
9 //
10 // * Redistributions of source code must retain the above copyright
11 // notice, this list of conditions and the following disclaimer.
12 // * Redistributions in binary form must reproduce the above
13 // copyright notice, this list of conditions and the following disclaimer
14 // in the documentation and/or other materials provided with the
15 // distribution.
16 // * Neither the name of Google Inc. nor the names of its
17 // contributors may be used to endorse or promote products derived from
18 // this software without specific prior written permission.
19 //
20 // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21 // "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22 // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23 // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24 // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25 // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26 // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27 // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28 // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29 // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30 // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
32 // #undefs all macros defined in port_def.inc. See comments in port_def.inc
33 // for more info.
34
35 #ifndef PROTOBUF_PORT_
36 #error "port_undef.inc must be included after port_def.inc"
37 #endif
38 #undef PROTOBUF_PORT_
39
40 #undef PROTOBUF_POISON_MEMORY_REGION
41 #undef PROTOBUF_UNPOISON_MEMORY_REGION
42 #undef PROTOBUF_BUILTIN_BSWAP16
43 #undef PROTOBUF_BUILTIN_BSWAP32
44 #undef PROTOBUF_BUILTIN_BSWAP64
45 #undef PROTOBUF_HAS_BUILTIN_MUL_OVERFLOW
46 #undef PROTOBUF_BUILTIN_ATOMIC
47 #undef PROTOBUF_GNUC_MIN
48 #undef PROTOBUF_CLANG_MIN
49 #undef PROTOBUF_MSC_VER_MIN
50 #undef PROTOBUF_CPLUSPLUS_MIN
51 #undef PROTOBUF_ABSL_MIN
52 #undef PROTOBUF_ALWAYS_INLINE
53 #undef PROTOBUF_ALWAYS_INLINE_CALL
54 #undef PROTOBUF_NDEBUG_INLINE
55 #undef PROTOBUF_MUSTTAIL
56 #undef PROTOBUF_TAILCALL
57 #undef PROTOBUF_COLD
58 #undef PROTOBUF_NOINLINE
59 #undef PROTOBUF_SECTION_VARIABLE
60 #undef PROTOBUF_IGNORE_DEPRECATION_START
61 #undef PROTOBUF_IGNORE_DEPRECATION_STOP
62 #undef PROTOBUF_RETURNS_NONNULL
63 #undef PROTOBUF_ATTRIBUTE_REINITIALIZES
64 #undef PROTOBUF_RTTI
65 #undef PROTOBUF_VERSION
66 #undef PROTOBUF_VERSION_SUFFIX
67 #undef PROTOBUF_FIELD_OFFSET
68 #undef PROTOBUF_MIN_HEADER_VERSION_FOR_PROTOC
69 #undef PROTOBUF_MIN_PROTOC_VERSION
70 #undef PROTOBUF_PREDICT_TRUE
71 #undef PROTOBUF_PREDICT_FALSE
72 #undef PROTOBUF_FALLTHROUGH_INTENDED
73 #undef PROTOBUF_EXPORT
74 #undef PROTOC_EXPORT
75 #undef PROTOBUF_NODISCARD
76 #undef PROTOBUF_RESTRICT
77 #undef PROTOBUF_FORCE_COPY_IN_RELEASE
78 #undef PROTOBUF_FORCE_COPY_IN_SWAP
79 #undef PROTOBUF_FORCE_COPY_IN_MOVE
80 #undef PROTOBUF_FORCE_RESET_IN_CLEAR
81 #undef PROTOBUF_FUZZ_MESSAGE_SPACE_USED_LONG
82 #undef PROTOBUF_FORCE_COPY_DEFAULT_STRING
83 #undef PROTOBUF_FORCE_ALLOCATION_ON_CONSTRUCTION
84 #undef PROTOBUF_UNUSED
85 #undef PROTOBUF_ASSUME
86 #undef PROTOBUF_EXPORT_TEMPLATE_DECLARE
87 #undef PROTOBUF_EXPORT_TEMPLATE_DEFINE
88 #undef PROTOBUF_ALIGNAS
89 #undef PROTOBUF_FINAL
90 #undef PROTOBUF_THREAD_LOCAL
91 #undef PROTOBUF_LITTLE_ENDIAN
92 #undef PROTOBUF_BIG_ENDIAN
93 #undef PROTOBUF_CONSTINIT
94 #undef PROTOBUF_CONSTEXPR
95 #undef PROTOBUF_CONSTINIT_DEFAULT_INSTANCES
96 #undef PROTOBUF_ATTRIBUTE_WEAK
97 #undef PROTOBUF_HAVE_ATTRIBUTE_WEAK
98 #undef PROTOBUF_ATTRIBUTE_NO_DESTROY
99 #undef PROTOBUF_ATTRIBUTE_STANDALONE_DEBUG
100 #undef PROTOBUF_ATTRIBUTE_INIT_PRIORITY1
101 #undef PROTOBUF_ATTRIBUTE_INIT_PRIORITY2
102 #undef PROTOBUF_PRAGMA_INIT_SEG
103 #undef PROTOBUF_ASAN
104 #undef PROTOBUF_MSAN
105 #undef PROTOBUF_TSAN
106 #undef PROTOBUF_TSAN_DECLARE_MEMBER
107 #undef PROTOBUF_TSAN_READ
108 #undef PROTOBUF_TSAN_WRITE
109 #undef PROTOBUF_USE_TABLE_PARSER_ON_REFLECTION
110 #undef PROTOBUF_TC_PARAM_DECL
111 #undef PROTOBUF_EXCLUSIVE_LOCKS_REQUIRED
112 #undef PROTOBUF_LOCKS_EXCLUDED
113 #undef PROTOBUF_NO_THREAD_SAFETY_ANALYSIS
114 #undef PROTOBUF_GUARDED_BY
115 #undef PROTOBUF_DEBUG
116 #undef PROTO2_IS_OSS
117 #undef PROTOBUF_NO_THREADLOCAL
118
119 #ifdef PROTOBUF_FUTURE_BREAKING_CHANGES
120 #undef PROTOBUF_FUTURE_BREAKING_CHANGES
121 #undef PROTOBUF_FUTURE_REMOVE_CLEARED_API
122 #undef PROTOBUF_FUTURE_DESCRIPTOR_EXTENSION_DECL
123 #endif
124
125 // Restore macros that may have been #undef'd in port_def.inc.
126
127 #ifdef PROTOBUF_DID_UNDEF_PACKAGE
128 #pragma pop_macro("PACKAGE")
129 #undef PROTOBUF_DID_UNDEF_PACKAGE
130 #endif
131
132 #ifdef PROTOBUF_DID_UNDEF_PACKED
133 #pragma pop_macro("PACKED")
134 #undef PROTOBUF_DID_UNDEF_PACKED
135 #endif
136
137 #ifdef PROTOBUF_DID_UNDEF_DOMAIN
138 #pragma pop_macro("DOMAIN")
139 #undef PROTOBUF_DID_UNDEF_DOMAIN
140 #endif
141
142 #ifdef PROTOBUF_DID_UNDEF_LINUX
143 #pragma pop_macro("linux")
144 #endif
145
146 #ifdef _WIN32
147 #pragma pop_macro("CompareString")
148 #pragma pop_macro("CREATE_NEW")
149 #pragma pop_macro("DELETE")
150 #pragma pop_macro("DOUBLE_CLICK")
151 #pragma pop_macro("ERROR")
152 #pragma pop_macro("ERROR_BUSY")
153 #pragma pop_macro("ERROR_INSTALL_FAILED")
154 #pragma pop_macro("ERROR_NOT_FOUND")
155 #pragma pop_macro("GetClassName")
156 #pragma pop_macro("GetCurrentTime")
157 #pragma pop_macro("GetMessage")
158 #pragma pop_macro("GetObject")
159 #pragma pop_macro("IGNORE")
160 #pragma pop_macro("IN")
161 #pragma pop_macro("INPUT_KEYBOARD")
162 #pragma pop_macro("OUT")
163 #pragma pop_macro("OPTIONAL")
164 #pragma pop_macro("min")
165 #pragma pop_macro("max")
166 #pragma pop_macro("NEAR")
167 #pragma pop_macro("NO_DATA")
168 #pragma pop_macro("NO_ERROR")
169 #pragma pop_macro("REASON_UNKNOWN")
170 #pragma pop_macro("SERVICE_DISABLED")
171 #pragma pop_macro("SEVERITY_ERROR")
172 #pragma pop_macro("STRICT")
173 #pragma pop_macro("STATUS_PENDING")
174 #pragma pop_macro("timezone")
175 #pragma pop_macro("TRUE")
176 #pragma pop_macro("FALSE")
177 #endif
178
179 #ifdef __APPLE__
180 #pragma pop_macro("TRUE")
181 #pragma pop_macro("FALSE")
182 #pragma pop_macro("UID_MAX")
183 #pragma pop_macro("GID_MAX")
184 #pragma pop_macro("TYPE_BOOL")
185 #endif // __APPLE__
186
187 #if defined(__clang__) || defined(__GNUC__) || defined(_MSC_VER)
188 #pragma pop_macro("DEBUG")
189 #endif // defined(__clang__) || defined(__GNUC__) || defined(_MSC_VER)
190
191 #if defined(__GNUC__)
192 #pragma GCC diagnostic pop
193 #endif
194
195 #ifdef __clang__
196 #pragma clang diagnostic pop
197 #endif
198
199 // Pop the warning(push) from port_def.inc
200 #ifdef _MSC_VER
201 #pragma warning(pop)
202 #endif