Test availability of __has_feature macro

This commit is contained in:
Lovell Fuller 2015-05-11 11:54:53 +01:00
parent 4f72dcbf54
commit e07a105b7c

View File

@ -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 {