mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-22 21:36:11 +01:00
Remove check for compiler version before using __COUNTER__
All still supported compiler versions support __COUNTER__. User can also still turn off use of __COUNTER__ by defining CATCH_CONFIG_NO_COUNTER.
This commit is contained in:
parent
6e46f29830
commit
4453fefb00
@ -86,15 +86,10 @@
|
|||||||
|
|
||||||
////////////////////////////////////////////////////////////////////////////////
|
////////////////////////////////////////////////////////////////////////////////
|
||||||
|
|
||||||
// Use __COUNTER__ if the compiler supports it
|
// All supported compilers support COUNTER macro,
|
||||||
#if ( defined _MSC_VER && _MSC_VER >= 1300 ) || \
|
//but user still might want to turn it off
|
||||||
( defined __GNUC__ && ( __GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 3 )) ) || \
|
|
||||||
( defined __clang__ && __clang_major__ >= 3 )
|
|
||||||
|
|
||||||
#define CATCH_INTERNAL_CONFIG_COUNTER
|
#define CATCH_INTERNAL_CONFIG_COUNTER
|
||||||
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
// Now set the actual defines based on the above + anything the user has configured
|
// Now set the actual defines based on the above + anything the user has configured
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user