Fix a -Wundef when FMT_GCC_VERSION < 600

This commit is contained in:
Elias Kosunen 2018-05-07 13:46:02 +03:00 committed by Victor Zverovich
parent 7d3de49715
commit a4e4f74530

View File

@ -116,7 +116,8 @@
#endif #endif
#if FMT_USE_USER_DEFINED_LITERALS && \ #if FMT_USE_USER_DEFINED_LITERALS && \
(FMT_GCC_VERSION >= 600 || FMT_CLANG_VERSION >= 304) (FMT_GCC_VERSION >= 600 || \
(defined(FMT_CLANG_VERSION) && FMT_CLANG_VERSION >= 304))
# define FMT_UDL_TEMPLATE 1 # define FMT_UDL_TEMPLATE 1
#else #else
# define FMT_UDL_TEMPLATE 0 # define FMT_UDL_TEMPLATE 0