Fixed uncaught_exceptions usage with clang

For some reason clang seems so believe uncaught_exceptions does not belong to the std namespace:

no member named 'uncaught_exceptions' in namespace 'std'; did you mean
      simply 'uncaught_exceptions'?

I haven't found any indication confirming this, but let's just support both…
This commit is contained in:
Mathieu Champlon 2018-03-25 17:02:58 +02:00 committed by Mathieu Champlon
parent 9e572eca3e
commit b8e8b6ffbf
3 changed files with 6 additions and 5 deletions

View file

@ -94,7 +94,7 @@
# endif
#endif
#if defined(__cplusplus) && (__cplusplus >= 201703L) || \
#if defined(__cpp_lib_uncaught_exceptions) || \
defined(_MSC_VER) && (_MSC_VER >= 1900)
# ifndef MOCK_NO_UNCAUGHT_EXCEPTIONS
# define MOCK_UNCAUGHT_EXCEPTIONS