From 41ebedf516476c1cd837c501b3195bbe82a054d9 Mon Sep 17 00:00:00 2001 From: Ingo van Lil Date: Tue, 3 Nov 2015 11:21:09 +0100 Subject: [PATCH] Fix warning when building with -Wundef and disabled exceptions --- format.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/format.cc b/format.cc index 962c4705..8e23701d 100644 --- a/format.cc +++ b/format.cc @@ -52,7 +52,7 @@ using fmt::internal::Arg; // Check if exceptions are disabled. -#if __GNUC__ && !__EXCEPTIONS +#if defined(__GNUC__) && !defined(__EXCEPTIONS) # define FMT_EXCEPTIONS 0 #endif #if defined(_MSC_VER) && !_HAS_EXCEPTIONS