Skip to content

Commit

Permalink
Don't always enable typeid usage under msvc (fmtlib#3821)
Browse files Browse the repository at this point in the history
  • Loading branch information
edo9300 authored and happymonkey1 committed Apr 6, 2024
1 parent c61190f commit fb6293c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions include/fmt/std.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fb6293c

Please sign in to comment.