Fix C++11 compat wrapper for clang
clang identifies itself as gcc 4.2. The preprocessor macros can be dumped with: clang++ -dM -E -x c /dev/null
This commit is contained in:
parent
0c086cf247
commit
26aa049724
|
@ -24,7 +24,7 @@
|
|||
/* Emulate certain features of C++11 in a C++98-compatible way. */
|
||||
|
||||
#ifdef __cplusplus
|
||||
#if (__GNUC__ <= 4 && __GNUC_MINOR__ < 6) || __cplusplus < 201103L
|
||||
#if (__GNUC__ <= 4 && __GNUC_MINOR__ < 6 && !defined(__clang__)) || __cplusplus < 201103L
|
||||
|
||||
// Null pointer literal
|
||||
// Source: SC22/WG21/N2431 = J16/07-0301
|
||||
|
|
Loading…
Reference in New Issue