mirror of
https://github.com/fmtlib/fmt.git
synced 2024-12-24 21:16:56 +00:00
FMT_EXPORT -> FMT_LIB_EXPORT
This commit is contained in:
parent
4a4a2a2bd6
commit
4613d48fd3
@ -256,7 +256,7 @@ if (CMAKE_BUILD_TYPE STREQUAL "Debug")
|
|||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (BUILD_SHARED_LIBS)
|
if (BUILD_SHARED_LIBS)
|
||||||
target_compile_definitions(fmt PRIVATE FMT_EXPORT INTERFACE FMT_SHARED)
|
target_compile_definitions(fmt PRIVATE FMT_LIB_EXPORT INTERFACE FMT_SHARED)
|
||||||
endif ()
|
endif ()
|
||||||
if (FMT_SAFE_DURATION_CAST)
|
if (FMT_SAFE_DURATION_CAST)
|
||||||
target_compile_definitions(fmt PUBLIC FMT_SAFE_DURATION_CAST)
|
target_compile_definitions(fmt PUBLIC FMT_SAFE_DURATION_CAST)
|
||||||
|
@ -191,14 +191,14 @@
|
|||||||
|
|
||||||
#if !defined(FMT_HEADER_ONLY) && defined(_WIN32)
|
#if !defined(FMT_HEADER_ONLY) && defined(_WIN32)
|
||||||
# define FMT_CLASS_API FMT_MSC_WARNING(suppress : 4275)
|
# define FMT_CLASS_API FMT_MSC_WARNING(suppress : 4275)
|
||||||
# ifdef FMT_EXPORT
|
# ifdef FMT_LIB_EXPORT
|
||||||
# define FMT_API __declspec(dllexport)
|
# define FMT_API __declspec(dllexport)
|
||||||
# elif defined(FMT_SHARED)
|
# elif defined(FMT_SHARED)
|
||||||
# define FMT_API __declspec(dllimport)
|
# define FMT_API __declspec(dllimport)
|
||||||
# endif
|
# endif
|
||||||
#else
|
#else
|
||||||
# define FMT_CLASS_API
|
# define FMT_CLASS_API
|
||||||
# if defined(FMT_EXPORT) || defined(FMT_SHARED)
|
# if defined(FMT_LIB_EXPORT) || defined(FMT_SHARED)
|
||||||
# if defined(__GNUC__) || defined(__clang__)
|
# if defined(__GNUC__) || defined(__clang__)
|
||||||
# define FMT_API __attribute__((visibility("default")))
|
# define FMT_API __attribute__((visibility("default")))
|
||||||
# endif
|
# endif
|
||||||
|
Loading…
Reference in New Issue
Block a user