Fix how GCC version is detected when checking for __COUNTER__

Fixes #928
This commit is contained in:
Martin Hořeňovský 2017-06-13 18:20:59 +02:00
parent 004228efb2
commit efba988ccc
1 changed files with 1 additions and 1 deletions

View File

@ -170,7 +170,7 @@
// Use __COUNTER__ if the compiler supports it
#if ( defined _MSC_VER && _MSC_VER >= 1300 ) || \
( defined __GNUC__ && __GNUC__ >= 4 && __GNUC_MINOR__ >= 3 ) || \
( defined __GNUC__ && ( __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3 )) ) || \
( defined __clang__ && __clang_major__ >= 3 )
#define CATCH_INTERNAL_CONFIG_COUNTER