Unify symbol visibility configuration for all compilers

This makes it possible to build unit tests with shared libraries on MSVC.

Change-Id: I1db66a80b2c78c4f3d354e35235244d17bac9809
This commit is contained in:
Taylor Braun-Jones
2020-01-28 12:09:30 -05:00
parent 29c2912ee6
commit 3f6d273676
66 changed files with 287 additions and 180 deletions
+9 -6
View File
@@ -63,25 +63,28 @@ namespace internal {
#endif
// Return a C++ string.
extern std::string StringPrintf(const char* format, ...)
CERES_EXPORT_INTERNAL extern std::string StringPrintf(const char* format, ...)
// Tell the compiler to do printf format string checking.
CERES_PRINTF_ATTRIBUTE(1, 2);
// Store result into a supplied string and return it.
extern const std::string& SStringPrintf(std::string* dst,
const char* format,
...)
CERES_EXPORT_INTERNAL extern const std::string& SStringPrintf(
std::string* dst, const char* format, ...)
// Tell the compiler to do printf format string checking.
CERES_PRINTF_ATTRIBUTE(2, 3);
// Append result to a supplied string.
extern void StringAppendF(std::string* dst, const char* format, ...)
CERES_EXPORT_INTERNAL extern void StringAppendF(std::string* dst,
const char* format,
...)
// Tell the compiler to do printf format string checking.
CERES_PRINTF_ATTRIBUTE(2, 3);
// 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(std::string* dst, const char* format, va_list ap);
CERES_EXPORT_INTERNAL extern void StringAppendV(std::string* dst,
const char* format,
va_list ap);
#undef CERES_PRINTF_ATTRIBUTE