Permalink
Browse files

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

…akes

migrating code to C++11 easier).

Approved by:	dim (mentor)
  • Loading branch information...
davidchisnall committed Dec 27, 2011
1 parent 2fadf62 commit c8ed04c26b6758354853a6bed4629f71d0d01a7d
Showing with 3 additions and 1 deletion.
  1. +3 −1 sys/sys/_null.h
@@ -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__)

0 comments on commit c8ed04c

Please sign in to comment.