Skip to content

Commit

Permalink
Define NULL to nullptr in C++11 mode (not strictly required, but it m…
Browse files Browse the repository at this point in the history
…akes

migrating code to C++11 easier).

Approved by:	dim (mentor)
  • Loading branch information
davidchisnall committed Dec 27, 2011
1 parent 2fadf62 commit c8ed04c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sys/sys/_null.h
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down

0 comments on commit c8ed04c

Please sign in to comment.