Commit fc088403 authored by Victor Zverovich's avatar Victor Zverovich

Move FMT_GCC_VISIBILITY_HIDDEN to format.h

parent 1aeed2db
...@@ -247,12 +247,6 @@ ...@@ -247,12 +247,6 @@
# define FMT_API # define FMT_API
#endif #endif
#if FMT_GCC_VERSION
# define FMT_GCC_VISIBILITY_HIDDEN __attribute__((visibility("hidden")))
#else
# define FMT_GCC_VISIBILITY_HIDDEN
#endif
// libc++ supports string_view in pre-c++17. // libc++ supports string_view in pre-c++17.
#if (FMT_HAS_INCLUDE(<string_view>) && \ #if (FMT_HAS_INCLUDE(<string_view>) && \
(__cplusplus > 201402L || defined(_LIBCPP_VERSION))) || \ (__cplusplus > 201402L || defined(_LIBCPP_VERSION))) || \
......
...@@ -43,6 +43,12 @@ ...@@ -43,6 +43,12 @@
#include "core.h" #include "core.h"
#if FMT_GCC_VERSION
# define FMT_GCC_VISIBILITY_HIDDEN __attribute__((visibility("hidden")))
#else
# define FMT_GCC_VISIBILITY_HIDDEN
#endif
#ifdef __INTEL_COMPILER #ifdef __INTEL_COMPILER
# define FMT_ICC_VERSION __INTEL_COMPILER # define FMT_ICC_VERSION __INTEL_COMPILER
#elif defined(__ICL) #elif defined(__ICL)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment