diff options
author | Feng Xiao <xfxyjwf@gmail.com> | 2015-06-15 21:42:57 -0700 |
---|---|---|
committer | Feng Xiao <xfxyjwf@gmail.com> | 2015-06-17 11:19:46 -0700 |
commit | 818c5eee08840355d70d2f3bdf1a2f17986a5e70 (patch) | |
tree | e6db0b1344385f8c48820c58d7297f653bff39f7 /src/google/protobuf/stubs/mathlimits.h | |
parent | e96ff30120a3834f7d1e31e43e591bf7cfbd731f (diff) |
Fix broken builds.
Diffstat (limited to 'src/google/protobuf/stubs/mathlimits.h')
-rw-r--r-- | src/google/protobuf/stubs/mathlimits.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/google/protobuf/stubs/mathlimits.h b/src/google/protobuf/stubs/mathlimits.h index 39957d69..d9846940 100644 --- a/src/google/protobuf/stubs/mathlimits.h +++ b/src/google/protobuf/stubs/mathlimits.h @@ -53,6 +53,8 @@ #include <cfloat> +#include <google/protobuf/stubs/common.h> + // ========================================================================= // // Useful integer and floating point limits and type traits. @@ -162,7 +164,7 @@ template<typename T> struct MathLimits { #define DECL_SIGNED_INT_LIMITS(IntType, UnsignedIntType) \ template<> \ -struct MathLimits<IntType> { \ +struct LIBPROTOBUF_EXPORT MathLimits<IntType> { \ typedef IntType Type; \ typedef UnsignedIntType UnsignedType; \ static const bool kIsSigned = true; \ @@ -182,7 +184,7 @@ struct MathLimits<IntType> { \ #define DECL_UNSIGNED_INT_LIMITS(IntType) \ template<> \ -struct MathLimits<IntType> { \ +struct LIBPROTOBUF_EXPORT MathLimits<IntType> { \ typedef IntType Type; \ typedef IntType UnsignedType; \ static const bool kIsSigned = false; \ @@ -241,7 +243,7 @@ DECL_UNSIGNED_INT_LIMITS(unsigned long long int) // the global objects construction time. #define DECL_FP_LIMITS(FP_Type, PREFIX) \ template<> \ -struct MathLimits<FP_Type> { \ +struct LIBPROTOBUF_EXPORT MathLimits<FP_Type> { \ typedef FP_Type Type; \ typedef FP_Type UnsignedType; \ static const bool kIsSigned = true; \ |