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 31// #undefs all macros defined in port_def.inc. See comments in port_def.inc 32// for more info. 33 34#ifndef PROTOBUF_NAMESPACE 35#error "port_undef.inc must be included after port_def.inc" 36#endif 37#undef PROTOBUF_NAMESPACE 38#undef PROTOBUF_NAMESPACE_ID 39#undef PROTOBUF_ALWAYS_INLINE 40#undef PROTOBUF_COLD 41#undef PROTOBUF_NOINLINE 42#undef PROTOBUF_SECTION_VARIABLE 43#undef PROTOBUF_DEPRECATED 44#undef PROTOBUF_DEPRECATED_MSG 45#undef PROTOBUF_FUNC_ALIGN 46#undef PROTOBUF_RETURNS_NONNULL 47#undef PROTOBUF_ATTRIBUTE_REINITIALIZES 48#undef PROTOBUF_RTTI 49#undef PROTOBUF_VERSION 50#undef PROTOBUF_VERSION_SUFFIX 51#undef PROTOBUF_FIELD_OFFSET 52#undef PROTOBUF_MIN_HEADER_VERSION_FOR_PROTOC 53#undef PROTOBUF_MIN_PROTOC_VERSION 54#undef PROTOBUF_PREDICT_TRUE 55#undef PROTOBUF_PREDICT_FALSE 56#undef PROTOBUF_LONGLONG 57#undef PROTOBUF_ULONGLONG 58#undef PROTOBUF_LL_FORMAT 59#undef PROTOBUF_GUARDED_BY 60#undef PROTOBUF_FALLTHROUGH_INTENDED 61#undef PROTOBUF_EXPORT 62#undef PROTOC_EXPORT 63#undef PROTOBUF_MUST_USE_RESULT 64#undef PROTOBUF_NAMESPACE_OPEN 65#undef PROTOBUF_NAMESPACE_CLOSE 66#undef PROTOBUF_UNUSED 67 68// Restore macro that may have been #undef'd in port_def.inc. 69#ifdef _MSC_VER 70#pragma pop_macro("GetMessage") 71#pragma pop_macro("IGNORE") 72#pragma pop_macro("IN") 73#endif 74 75#if defined(__clang__) 76#pragma clang diagnostic pop 77#endif 78