From e867768ee65f539f62c964ce65474501d91aaa66 Mon Sep 17 00:00:00 2001 From: Johan J Date: Mon, 3 Dec 2018 14:54:44 +0100 Subject: [PATCH] Do not override user provided compile flag --- include/fmt/core.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/fmt/core.h b/include/fmt/core.h index 882953b2..c30e8b47 100644 --- a/include/fmt/core.h +++ b/include/fmt/core.h @@ -112,12 +112,14 @@ #endif // Check if exceptions are disabled. +#ifndef FMT_EXCEPTIONS #if (defined(__GNUC__) && !defined(__EXCEPTIONS)) || \ FMT_MSC_VER && !_HAS_EXCEPTIONS # define FMT_EXCEPTIONS 0 #else # define FMT_EXCEPTIONS 1 #endif +#endif // Define FMT_USE_NOEXCEPT to make fmt use noexcept (C++11 feature). #ifndef FMT_USE_NOEXCEPT