Skip to content

Commit

Permalink
Do not override user provided compile flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan J authored and vitaut committed Dec 3, 2018
1 parent 0c7f5c3 commit e867768
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions include/fmt/core.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e867768

Please sign in to comment.