Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorMartin Hořeňovský2017-06-13 18:20:59 +0200
committerMartin Hořeňovský2017-06-13 18:20:59 +0200
commitefba988ccc3f8d9410ddf73b028854ce0cba685a (patch)
tree466b04201994a5b2420e2dc68e9467b00bd19dfe /include
parent004228efb2ccbd2f69eb443933507012fa82304c (diff)
downloadcatch3-efba988ccc3f8d9410ddf73b028854ce0cba685a.tar.gz
Fix how GCC version is detected when checking for __COUNTER__
Fixes #928
Diffstat (limited to 'include')
-rw-r--r--include/internal/catch_compiler_capabilities.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/internal/catch_compiler_capabilities.h b/include/internal/catch_compiler_capabilities.h
index ac6f259d..01964499 100644
--- a/include/internal/catch_compiler_capabilities.h
+++ b/include/internal/catch_compiler_capabilities.h
@@ -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