Define NULL to nullptr in C++11 mode (not strictly required, but it makes

migrating code to C++11 easier).

Approved by:	dim (mentor)
This commit is contained in:
David Chisnall 2011-12-27 21:36:31 +00:00
parent 981dfb0965
commit 3033610f5d
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228918

View File

@ -31,7 +31,9 @@
#if !defined(__cplusplus)
#define NULL ((void *)0)
#else
#if defined(__GNUG__) && defined(__GNUC__) && __GNUC__ >= 4
#if __cplusplus >= 201103L
#define NULL nullptr
#elif defined(__GNUG__) && defined(__GNUC__) && __GNUC__ >= 4
#define NULL __null
#else
#if defined(__LP64__)