Skip to content

Commit

Permalink
Fixed GCC version test
Browse files Browse the repository at this point in the history
  • Loading branch information
Remotion authored and vitaut committed Jun 10, 2018
1 parent 9ff3b6a commit 47268ec
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions include/fmt/format.h
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@
# define FMT_ICC_VERSION 0
#endif

#if (defined(__GNUC__) && !defined(__clang__) && __GNUC__ >= 406) || \
FMT_CLANG_VERSION
#include "core.h"

#if FMT_GCC_VERSION >= 406 || FMT_CLANG_VERSION
# pragma GCC diagnostic push

// Disable the warning about declaration shadowing because it affects too
Expand All @@ -64,8 +65,6 @@
# pragma GCC diagnostic ignored "-Wsign-conversion"
#endif

#include "core.h"

#ifdef _SECURE_SCL
# define FMT_SECURE_SCL _SECURE_SCL
#else
Expand Down

0 comments on commit 47268ec

Please sign in to comment.