mirror of
https://github.com/fmtlib/fmt.git
synced 2026-11-09 14:50:24 +08:00
Move FMT_USE_RTTI to ostream.h
Only ostream.h and std.h use it, and std.h includes ostream.h.
This commit is contained in:
parent
41f2838233
commit
ded661bf35
@ -97,17 +97,6 @@
|
||||
# define FMT_INLINE_VARIABLE
|
||||
#endif
|
||||
|
||||
// Check if RTTI is disabled.
|
||||
#ifdef FMT_USE_RTTI
|
||||
// Use the provided definition.
|
||||
#elif defined(__GXX_RTTI) || FMT_HAS_FEATURE(cxx_rtti) || defined(_CPPRTTI) || \
|
||||
defined(__INTEL_RTTI__) || defined(__RTTI)
|
||||
// __RTTI is for EDG compilers. _CPPRTTI is for MSVC.
|
||||
# define FMT_USE_RTTI 1
|
||||
#else
|
||||
# define FMT_USE_RTTI 0
|
||||
#endif
|
||||
|
||||
// Visibility when compiled as a shared library/object.
|
||||
#if defined(FMT_LIB_EXPORT) || defined(FMT_SHARED)
|
||||
# define FMT_SO_VISIBILITY(value) FMT_VISIBILITY(value)
|
||||
|
||||
@ -30,6 +30,17 @@
|
||||
# define FMT_MSVC_STL_UPDATE 0
|
||||
#endif
|
||||
|
||||
// Check if RTTI is disabled.
|
||||
#ifdef FMT_USE_RTTI
|
||||
// Use the provided definition.
|
||||
#elif defined(__GXX_RTTI) || FMT_HAS_FEATURE(cxx_rtti) || defined(_CPPRTTI) || \
|
||||
defined(__INTEL_RTTI__) || defined(__RTTI)
|
||||
// __RTTI is for EDG compilers. _CPPRTTI is for MSVC.
|
||||
# define FMT_USE_RTTI 1
|
||||
#else
|
||||
# define FMT_USE_RTTI 0
|
||||
#endif
|
||||
|
||||
FMT_BEGIN_NAMESPACE
|
||||
namespace detail {
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user