Skip to content

Commit

Permalink
Test availability of __has_feature macro
Browse files Browse the repository at this point in the history
  • Loading branch information
lovell committed May 11, 2015
1 parent 4f72dcb commit e07a105
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/common.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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 {

Expand Down

0 comments on commit e07a105

Please sign in to comment.