mirror of
https://github.com/fmtlib/fmt.git
synced 2025-08-02 20:24:43 +02:00
Fix errors setting of FMT_USE_FLOAT128 (#3259)
This commit is contained in:
@@ -798,12 +798,24 @@ using is_integer =
|
|||||||
!std::is_same<T, wchar_t>::value>;
|
!std::is_same<T, wchar_t>::value>;
|
||||||
|
|
||||||
#ifndef FMT_USE_FLOAT128
|
#ifndef FMT_USE_FLOAT128
|
||||||
# ifdef __SIZEOF_FLOAT128__
|
# ifdef __clang__
|
||||||
# define FMT_USE_FLOAT128 1
|
// Clang C++ emulates GCC, so it has to appear early.
|
||||||
# else
|
# if defined(__has_include)
|
||||||
|
# if __has_include(<quadmath.h>)
|
||||||
|
# define FMT_USE_FLOAT128 1
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
# elif defined(__GNUC__)
|
||||||
|
// GNU C++:
|
||||||
|
# if defined(_GLIBCXX_USE_FLOAT128) && !defined(__STRICT_ANSI__)
|
||||||
|
# define FMT_USE_FLOAT128 1
|
||||||
|
# endif
|
||||||
|
# endif
|
||||||
|
# ifndef FMT_USE_FLOAT128
|
||||||
# define FMT_USE_FLOAT128 0
|
# define FMT_USE_FLOAT128 0
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if FMT_USE_FLOAT128
|
#if FMT_USE_FLOAT128
|
||||||
using float128 = __float128;
|
using float128 = __float128;
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user