mirror of
https://github.com/microsoft/GSL.git
synced 2024-11-03 17:56:43 -05:00
Check if __GCC__ is defined first
This commit is contained in:
parent
eae7c21177
commit
70c58cce50
@ -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
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user