mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-21 11:13:30 +00:00
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:
parent
981dfb0965
commit
3033610f5d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228918
@ -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__)
|
||||
|
Loading…
Reference in New Issue
Block a user