From 818c5eee08840355d70d2f3bdf1a2f17986a5e70 Mon Sep 17 00:00:00 2001 From: Feng Xiao Date: Mon, 15 Jun 2015 21:42:57 -0700 Subject: Fix broken builds. --- src/google/protobuf/stubs/mathlimits.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/google/protobuf/stubs/mathlimits.h') 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 +#include + // ========================================================================= // // Useful integer and floating point limits and type traits. @@ -162,7 +164,7 @@ template struct MathLimits { #define DECL_SIGNED_INT_LIMITS(IntType, UnsignedIntType) \ template<> \ -struct MathLimits { \ +struct LIBPROTOBUF_EXPORT MathLimits { \ typedef IntType Type; \ typedef UnsignedIntType UnsignedType; \ static const bool kIsSigned = true; \ @@ -182,7 +184,7 @@ struct MathLimits { \ #define DECL_UNSIGNED_INT_LIMITS(IntType) \ template<> \ -struct MathLimits { \ +struct LIBPROTOBUF_EXPORT MathLimits { \ 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 { \ +struct LIBPROTOBUF_EXPORT MathLimits { \ typedef FP_Type Type; \ typedef FP_Type UnsignedType; \ static const bool kIsSigned = true; \ -- cgit v1.2.3