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:
Thomas Jarosch 2014-12-25 01:28:02 +01:00
parent 0c086cf247
commit 26aa049724
1 changed files with 1 additions and 1 deletions

View File

@ -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