mirror of
https://github.com/fmtlib/fmt.git
synced 2025-01-18 19:15:50 +00:00
Don't always enable typeid usage under msvc (#3821)
This commit is contained in:
parent
11ba1270ab
commit
06fc25f266
@ -54,8 +54,8 @@
|
||||
|
||||
// Check if typeid is available.
|
||||
#ifndef FMT_USE_TYPEID
|
||||
// __RTTI is for EDG compilers. In MSVC typeid is available without RTTI.
|
||||
# if defined(__GXX_RTTI) || FMT_HAS_FEATURE(cxx_rtti) || FMT_MSC_VERSION || \
|
||||
// __RTTI is for EDG compilers. _CPPRTTI is for MSVC.
|
||||
# if defined(__GXX_RTTI) || FMT_HAS_FEATURE(cxx_rtti) || defined(_CPPRTTI) || \
|
||||
defined(__INTEL_RTTI__) || defined(__RTTI)
|
||||
# define FMT_USE_TYPEID 1
|
||||
# else
|
||||
|
Loading…
x
Reference in New Issue
Block a user