mirror of
https://github.com/ceres-solver/ceres-solver.git
synced 2026-08-29 16:40:38 +08:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user