From 16e3c48bb0ca964b97fa662002cfd3a9f276aa07 Mon Sep 17 00:00:00 2001 From: Deniz Evrenci Date: Sun, 1 Sep 2019 20:04:42 +0900 Subject: [PATCH] Move definition of FMT_USE_INT128 to core.h --- include/fmt/core.h | 8 ++++++++ include/fmt/format.h | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/include/fmt/core.h b/include/fmt/core.h index 43236cc8..e06f18bb 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -195,6 +195,14 @@ # define FMT_USE_EXPERIMENTAL_STRING_VIEW #endif +#ifdef FMT_USE_INT128 +// Do nothing. +#elif defined(__SIZEOF_INT128__) +# define FMT_USE_INT128 1 +#else +# define FMT_USE_INT128 0 +#endif + FMT_BEGIN_NAMESPACE // Implementations of enable_if_t and other types for pre-C++14 systems. diff --git a/include/fmt/format.h b/include/fmt/format.h index a524c33e..8eeb4dee 100644 --- a/include/fmt/format.h +++ b/include/fmt/format.h @@ -123,14 +123,6 @@ FMT_END_NAMESPACE # endif #endif -#ifdef FMT_USE_INT128 -// Do nothing. -#elif defined(__SIZEOF_INT128__) -# define FMT_USE_INT128 1 -#else -# define FMT_USE_INT128 0 -#endif - // __builtin_clz is broken in clang with Microsoft CodeGen: // https://github.com/fmtlib/fmt/issues/519 #if (FMT_GCC_VERSION || FMT_HAS_BUILTIN(__builtin_clz)) && !FMT_MSC_VER