Add check that BOOST_HAS_LONG_LONG is supported on Darwin

before enabling the macro.  Apple helpfully supplies this
macro (__DARWIN_NO_LONG_LONG) if long long type is supported.
This to handle case where compiling with -pedantic causes
compiler errors because it enforces ISO compliance
(c++98 in this case).
This commit is contained in:
K. Noel Belcourt
2014-02-04 17:32:06 -07:00
parent e9ebccdb74
commit f27ef7207a

View File

@ -74,8 +74,12 @@
//
// gcc has "long long"
// Except on Darwin with standard compliance enabled (-pedantic)
// Apple gcc helpfully defines this macro we can query
//
#define BOOST_HAS_LONG_LONG
#if !defined(__DARWIN_NO_LONG_LONG)
# define BOOST_HAS_LONG_LONG
#endif
//
// gcc implements the named return value optimization since version 3.1