Merge pull request #71 from alkino/develop

Use __has_attribute instead of gcc version in clang
This commit is contained in:
jzmaddock
2015-09-01 17:52:37 +01:00

View File

@ -23,6 +23,10 @@
#define __has_extension __has_feature #define __has_extension __has_feature
#endif #endif
#ifndef __has_attribute
#define __has_attribute(x) 0
#endif
#if !__has_feature(cxx_exceptions) && !defined(BOOST_NO_EXCEPTIONS) #if !__has_feature(cxx_exceptions) && !defined(BOOST_NO_EXCEPTIONS)
# define BOOST_NO_EXCEPTIONS # define BOOST_NO_EXCEPTIONS
#endif #endif
@ -256,9 +260,7 @@
# define BOOST_NO_CXX14_DIGIT_SEPARATORS # define BOOST_NO_CXX14_DIGIT_SEPARATORS
#endif #endif
#if __has_attribute(unused)
// Unused attribute:
#if defined(__GNUC__) && (__GNUC__ >= 4)
# define BOOST_ATTRIBUTE_UNUSED __attribute__((unused)) # define BOOST_ATTRIBUTE_UNUSED __attribute__((unused))
#endif #endif