Try fix windows link error with visiblity

This commit is contained in:
gabime
2025-01-18 19:17:45 +02:00
parent b93c0f8e8d
commit ace82f7da6
2 changed files with 8 additions and 4 deletions

View File

@@ -29,7 +29,11 @@
#define SPDLOG_API __attribute__((visibility("default")))
#endif
#else // !defined(SPDLOG_SHARED_LIB)
#define SPDLOG_API
#if defined(_WIN32)
#define SPDLOG_API
#else
#define SPDLOG_API __attribute__((visibility("default")))
#endif
#endif
#define SPDLOG_FMT_RUNTIME(format_string) fmt::runtime(format_string)