From 0419d238829b53d6785a18301125381ae0bde8bf Mon Sep 17 00:00:00 2001 From: Victor Zverovich Date: Fri, 18 Mar 2022 07:41:41 -0700 Subject: [PATCH] Add FMT_USE_FLOAT128 --- include/fmt/format.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/include/fmt/format.h b/include/fmt/format.h index 6ed53aa9..21ffa24a 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -667,7 +667,14 @@ inline auto code_point_index(basic_string_view s, size_t n) return s.size(); } -#ifdef __SIZEOF_FLOAT128__ +#ifndef FMT_USE_FLOAT128 +# ifdef __SIZEOF_FLOAT128__ +# define FMT_USE_FLOAT128 1 +# else +# define FMT_USE_FLOAT128 0 +# endif +#endif +#if FMT_USE_FLOAT128 using float128 = __float128; #else using float128 = void;