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 committed by Phil Nash
parent e62a9aa444
commit 8d5f6c8e2e

View File

@ -112,7 +112,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