From ccc11678c734a8c52bc025b2b4c1b21e5f12abc7 Mon Sep 17 00:00:00 2001 From: "kenton@google.com" Date: Tue, 28 Apr 2009 01:48:06 +0000 Subject: Make building libprotobuf as a DLL work again. --- src/google/protobuf/generated_message_reflection.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/google/protobuf/generated_message_reflection.h') diff --git a/src/google/protobuf/generated_message_reflection.h b/src/google/protobuf/generated_message_reflection.h index 8f1c9cfc..44231c6b 100644 --- a/src/google/protobuf/generated_message_reflection.h +++ b/src/google/protobuf/generated_message_reflection.h @@ -387,12 +387,11 @@ inline To dynamic_cast_if_available(From from) { // This is slightly complicated because small strings store their data within // the string object but large strings do not. LIBPROTOBUF_EXPORT int StringSpaceUsedExcludingSelf(const string& str); -int StringSpaceUsedExcludingSelf(const string& str); // Helper for EnumType_Parse functions: try to parse the string 'name' as an // enum name of the given type, returning true and filling in value on success, // or returning false and leaving value unchanged on failure. -bool ParseNamedEnum(const EnumDescriptor* descriptor, +LIBPROTOBUF_EXPORT bool ParseNamedEnum(const EnumDescriptor* descriptor, const string& name, int* value); @@ -409,7 +408,7 @@ bool ParseNamedEnum(const EnumDescriptor* descriptor, // Just a wrapper around printing the name of a value. The main point of this // function is not to be inlined, so that you can do this without including // descriptor.h. -const string& NameOfEnum(const EnumDescriptor* descriptor, int value); +LIBPROTOBUF_EXPORT const string& NameOfEnum(const EnumDescriptor* descriptor, int value); } // namespace internal -- cgit v1.2.3