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

summaryrefslogtreecommitdiffhomepage
path: root/include/internal
diff options
context:
space:
mode:
authorMartin Hořeňovský2017-06-13 18:20:59 +0200
committerPhil Nash2017-06-26 16:49:34 +0100
commit8d5f6c8e2e5fdf355014f410c173ad5cd38e0bf8 (patch)
treea42eadb28f1ec72c9cef4fbe9c917f127fdeab18 /include/internal
parente62a9aa444abff8e309878b26c74d6f5f38b1321 (diff)
downloadcatch3-8d5f6c8e2e5fdf355014f410c173ad5cd38e0bf8.tar.gz
Fix how GCC version is detected when checking for __COUNTER__
Fixes #928
Diffstat (limited to 'include/internal')
-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 9684cf8f..b9f3fb1e 100644
--- a/include/internal/catch_compiler_capabilities.h
+++ b/include/internal/catch_compiler_capabilities.h
@@ -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