diff --git a/include/gsl/multi_span b/include/gsl/multi_span index 3a2d982..779f6e9 100644 --- a/include/gsl/multi_span +++ b/include/gsl/multi_span @@ -57,7 +57,7 @@ #endif // _MSC_VER < 1910 #endif // _MSC_VER -#if __clang__ || __GNUC__ +#if defined(__GNUC__) || defined(__clang__) #pragma GCC diagnostic push #pragma GCC diagnostic ignored "-Wdeprecated-declarations" #endif @@ -2266,7 +2266,7 @@ general_span_iterator operator+(typename general_span_iterator::diff #pragma GCC diagnostic pop #endif // __GNUC__ > 6 -#if __clang__ || __GNUC__ +#if defined(__GNUC__) || defined(__clang__) #pragma GCC diagnostic pop #endif