Move FMT_GCC_VISIBILITY_HIDDEN to format.h

This commit is contained in:
Victor Zverovich 2021-09-03 16:25:58 -07:00
parent 1aeed2dbca
commit fc0884037e
2 changed files with 6 additions and 6 deletions

View File

@ -247,12 +247,6 @@
# define FMT_API
#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.
#if (FMT_HAS_INCLUDE(<string_view>) && \
(__cplusplus > 201402L || defined(_LIBCPP_VERSION))) || \

View File

@ -43,6 +43,12 @@
#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
# define FMT_ICC_VERSION __INTEL_COMPILER
#elif defined(__ICL)