mirror of
https://github.com/gabime/spdlog.git
synced 2025-09-30 02:19:35 +08:00
Allow user to choose between static or shared library
This commit is contained in:
@@ -19,7 +19,7 @@
|
||||
#include <locale>
|
||||
#endif
|
||||
|
||||
#ifdef SPDLOG_STATIC_LIB
|
||||
#ifdef SPDLOG_COMPILED_LIB
|
||||
#undef SPDLOG_HEADER_ONLY
|
||||
#define SPDLOG_INLINE
|
||||
#else
|
||||
@@ -216,4 +216,4 @@ std::unique_ptr<T> make_unique(Args &&... args)
|
||||
|
||||
#ifdef SPDLOG_HEADER_ONLY
|
||||
#include "common-inl.h"
|
||||
#endif
|
||||
#endif
|
||||
|
@@ -37,6 +37,6 @@ protected:
|
||||
} // namespace sinks
|
||||
} // namespace spdlog
|
||||
|
||||
#ifndef SPDLOG_STATIC_LIB
|
||||
#ifndef SPDLOG_COMPILED_LIB
|
||||
#include "base_sink-inl.h"
|
||||
#endif
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user