diff options
Diffstat (limited to 'src/google/protobuf/has_bits.h')
-rw-r--r-- | src/google/protobuf/has_bits.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/src/google/protobuf/has_bits.h b/src/google/protobuf/has_bits.h index e3a0149a..edf4e829 100644 --- a/src/google/protobuf/has_bits.h +++ b/src/google/protobuf/has_bits.h @@ -32,7 +32,13 @@ #define GOOGLE_PROTOBUF_HAS_BITS_H__ #include <google/protobuf/stubs/common.h> -#include <google/protobuf/stubs/port.h> +#include <google/protobuf/port.h> + +#include <google/protobuf/port_def.inc> + +#ifdef SWIG +#error "You cannot SWIG proto headers" +#endif namespace google { namespace protobuf { @@ -52,7 +58,7 @@ class HasBits { } const ::google::protobuf::uint32& operator[](int index) const - GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE { + GOOGLE_PROTOBUF_ATTRIBUTE_ALWAYS_INLINE { return has_bits_[index]; } @@ -100,6 +106,8 @@ inline bool HasBits<doublewords>::empty() const { } // namespace internal } // namespace protobuf - } // namespace google + +#include <google/protobuf/port_undef.inc> + #endif // GOOGLE_PROTOBUF_HAS_BITS_H__ |