diff --git a/src/common.cc b/src/common.cc index c1474390..6bc403a2 100755 --- a/src/common.cc +++ b/src/common.cc @@ -14,9 +14,11 @@ #error GCC version 4.6+ is required for C++11 features - see https://github.com/lovell/sharp#prerequisites #endif -#if (defined(__clang__) && !__has_feature(cxx_range_for)) +#if (defined(__clang__) && defined(__has_feature)) +#if (!__has_feature(cxx_range_for)) #error clang version 3.0+ is required for C++11 features - see https://github.com/lovell/sharp#prerequisites #endif +#endif namespace sharp {