Skip to content

Commit e867768

Browse files
Johan Jvitaut
Johan J
authored andcommitted
Do not override user provided compile flag
1 parent 0c7f5c3 commit e867768

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

include/fmt/core.h

+2
Original file line numberDiff line numberDiff line change
@@ -112,12 +112,14 @@
112112
#endif
113113

114114
// Check if exceptions are disabled.
115+
#ifndef FMT_EXCEPTIONS
115116
#if (defined(__GNUC__) && !defined(__EXCEPTIONS)) || \
116117
FMT_MSC_VER && !_HAS_EXCEPTIONS
117118
# define FMT_EXCEPTIONS 0
118119
#else
119120
# define FMT_EXCEPTIONS 1
120121
#endif
122+
#endif
121123

122124
// Define FMT_USE_NOEXCEPT to make fmt use noexcept (C++11 feature).
123125
#ifndef FMT_USE_NOEXCEPT

0 commit comments

Comments
 (0)