| Index: build/build_config.h
|
| diff --git a/build/build_config.h b/build/build_config.h
|
| index 462518d26d6d5988ad6533e864c5674c8de31cad..ff3cf848ba25a60ff6f4c844d0e2ce52078630c6 100644
|
| --- a/build/build_config.h
|
| +++ b/build/build_config.h
|
| @@ -151,4 +151,18 @@
|
| #define BASE_STRING16_ITERATOR_IS_CHAR16_POINTER
|
| #endif
|
|
|
| +#if defined(__clang__)
|
| +#if __has_feature(cxx_nullptr)
|
| +#define NULLPTR_IS_NATIVE_TYPE 1
|
| +#endif
|
| +#elif defined(COMPILER_MSVC) && _MSC_VER >= 1600 && defined(_NATIVE_NULLPTR_SUPPORTED)
|
| +#define NULLPTR_IS_NATIVE_TYPE 1
|
| +#elif defined(COMPILER_GCC)
|
| +#if GCC_VERSION_AT_LEAST(4, 7, 0) && defined(__cplusplus) && __cplusplus >= 201103L
|
| +#define NULLPTR_IS_NATIVE_TYPE 1
|
| +#elif GCC_VERSION_AT_LEAST(4, 6, 0) && defined(__GXX_EXPERIMENTAL_CXX0X__)
|
| +#define NULLPTR_IS_NATIVE_TYPE 1
|
| +#endif
|
| +#endif
|
| +
|
| #endif // BUILD_BUILD_CONFIG_H_
|
|
|