diff options
author | Bo Yang <teboring@google.com> | 2015-08-23 10:45:14 -0700 |
---|---|---|
committer | Bo Yang <teboring@google.com> | 2015-08-25 17:58:48 -0700 |
commit | ff7bdad231d037802fd457ee4fd65e0291d366d7 (patch) | |
tree | 12f437b32201cdbbfade6d63193e15483640716d /src/google/protobuf/stubs/int128.h | |
parent | 839b180dbae98adf6caa54d0fb87b8d0a43081dc (diff) |
Fix bugs on windows
Diffstat (limited to 'src/google/protobuf/stubs/int128.h')
-rw-r--r-- | src/google/protobuf/stubs/int128.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/google/protobuf/stubs/int128.h b/src/google/protobuf/stubs/int128.h index 1e63037f..1499bb76 100644 --- a/src/google/protobuf/stubs/int128.h +++ b/src/google/protobuf/stubs/int128.h @@ -48,7 +48,7 @@ struct uint128_pod; #endif // An unsigned 128-bit integer type. Thread-compatible. -class uint128 { +class LIBPROTOBUF_EXPORT uint128 { public: UINT128_CONSTEXPR uint128(); // Sets to 0, but don't trust on this behavior. UINT128_CONSTEXPR uint128(uint64 top, uint64 bottom); @@ -84,7 +84,8 @@ class uint128 { friend uint64 Uint128High64(const uint128& v); // We add "std::" to avoid including all of port.h. - friend std::ostream& operator<<(std::ostream& o, const uint128& b); + LIBPROTOBUF_EXPORT friend std::ostream& operator<<(std::ostream& o, + const uint128& b); private: static void DivModImpl(uint128 dividend, uint128 divisor, @@ -115,10 +116,11 @@ struct uint128_pod { uint64 lo; }; -extern const uint128_pod kuint128max; +LIBPROTOBUF_EXPORT extern const uint128_pod kuint128max; // allow uint128 to be logged -extern std::ostream& operator<<(std::ostream& o, const uint128& b); +LIBPROTOBUF_EXPORT extern std::ostream& operator<<(std::ostream& o, + const uint128& b); // Methods to access low and high pieces of 128-bit value. // Defined externally from uint128 to facilitate conversion |