diff options
author | liujisi@google.com <liujisi@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2013-01-11 10:35:05 +0000 |
---|---|---|
committer | liujisi@google.com <liujisi@google.com@630680e5-0e50-0410-840e-4b1c322b438d> | 2013-01-11 10:35:05 +0000 |
commit | 117064c18b13dfe2e46f26b6dabe986c44f60fcd (patch) | |
tree | 0d84740e8ca73ee6555097bf00e8c139c12ea7ae /src/google/protobuf/stubs | |
parent | 71caf8c25def6d337e6ff7f752e487089d752b6f (diff) |
add missing dll export macros for msvc.
Diffstat (limited to 'src/google/protobuf/stubs')
-rw-r--r-- | src/google/protobuf/stubs/once.h | 1 | ||||
-rw-r--r-- | src/google/protobuf/stubs/stringprintf.h | 12 |
2 files changed, 7 insertions, 6 deletions
diff --git a/src/google/protobuf/stubs/once.h b/src/google/protobuf/stubs/once.h index c8cbe246..7fbc117f 100644 --- a/src/google/protobuf/stubs/once.h +++ b/src/google/protobuf/stubs/once.h @@ -118,6 +118,7 @@ typedef internal::AtomicWord ProtobufOnceType; #define GOOGLE_PROTOBUF_ONCE_INIT ::google::protobuf::ONCE_STATE_UNINITIALIZED +LIBPROTOBUF_EXPORT void GoogleOnceInitImpl(ProtobufOnceType* once, Closure* closure); inline void GoogleOnceInit(ProtobufOnceType* once, void (*init_func)()) { diff --git a/src/google/protobuf/stubs/stringprintf.h b/src/google/protobuf/stubs/stringprintf.h index 573f30f3..4a03e5ff 100644 --- a/src/google/protobuf/stubs/stringprintf.h +++ b/src/google/protobuf/stubs/stringprintf.h @@ -50,25 +50,25 @@ namespace google { namespace protobuf { // Return a C++ string -extern string StringPrintf(const char* format, ...); +LIBPROTOBUF_EXPORT extern string StringPrintf(const char* format, ...); // Store result into a supplied string and return it -extern const string& SStringPrintf(string* dst, const char* format, ...); +LIBPROTOBUF_EXPORT extern const string& SStringPrintf(string* dst, const char* format, ...); // Append result to a supplied string -extern void StringAppendF(string* dst, const char* format, ...); +LIBPROTOBUF_EXPORT extern void StringAppendF(string* dst, const char* format, ...); // Lower-level routine that takes a va_list and appends to a specified // string. All other routines are just convenience wrappers around it. -extern void StringAppendV(string* dst, const char* format, va_list ap); +LIBPROTOBUF_EXPORT extern void StringAppendV(string* dst, const char* format, va_list ap); // The max arguments supported by StringPrintfVector -extern const int kStringPrintfVectorMaxArgs; +LIBPROTOBUF_EXPORT extern const int kStringPrintfVectorMaxArgs; // You can use this version when all your arguments are strings, but // you don't know how many arguments you'll have at compile time. // StringPrintfVector will LOG(FATAL) if v.size() > kStringPrintfVectorMaxArgs -extern string StringPrintfVector(const char* format, const vector<string>& v); +LIBPROTOBUF_EXPORT extern string StringPrintfVector(const char* format, const vector<string>& v); } // namespace protobuf } // namespace google |