Workaround for older versions of clang.

This commit is contained in:
Edward Diener
2013-12-16 08:08:53 -05:00
parent c75b0e9d8b
commit 86ca46f142

View File

@ -10,6 +10,14 @@
#define BOOST_HAS_PRAGMA_ONCE
// When compiling with clang before __has_extension was defined,
// even if one writes 'defined(__has_extension) && __has_extension(xxx)',
// clang reports a compiler error. So the only workaround found is:
#ifndef __has_extension
#define __has_extension __has_feature
#endif
#if !__has_feature(cxx_exceptions) && !defined(BOOST_NO_EXCEPTIONS)
# define BOOST_NO_EXCEPTIONS
#endif