Check if __GCC__ is defined first

This commit is contained in:
Nicholas Guarracino 2015-11-13 09:54:27 -05:00
parent eae7c21177
commit 70c58cce50
2 changed files with 3 additions and 3 deletions

View File

@ -45,7 +45,7 @@
#endif // _MSC_VER #endif // _MSC_VER
#if (__GNUC__ < 5) && !defined(__clang__) #if defined(__GNUC__) && (__GNUC__ < 5) && !defined(__clang__)
#define constexpr /* nothing */ #define constexpr /* nothing */
#endif #endif

View File

@ -60,7 +60,7 @@
#endif // _MSC_VER #endif // _MSC_VER
#if (__GNUC__ < 5) && !defined(__clang__) #if defined(__GNUC__) && (__GNUC__ < 5) && !defined(__clang__)
#define constexpr /* nothing */ #define constexpr /* nothing */
#endif #endif
@ -231,7 +231,7 @@ private:
#ifndef _MSC_VER #ifndef _MSC_VER
#if (__GNUC__ < 5) && !defined(__clang__) #if defined(__GNUC__) && (__GNUC__ < 5) && !defined(__clang__)
const std::ptrdiff_t dynamic_range = -1; const std::ptrdiff_t dynamic_range = -1;
#else #else
struct static_bounds_dynamic_range_t struct static_bounds_dynamic_range_t