_null.h: If g++ 4.1 or any later version is used, use __null for NULL.
authorSascha Wildner <saw@online.de>
Sat, 31 Jan 2009 07:15:04 +0000 (08:15 +0100)
committerSascha Wildner <saw@online.de>
Sun, 15 Feb 2009 23:51:23 +0000 (00:51 +0100)
commit1f605f7582e408c975cc2ba90fc89fcc0e1bf1a2
treeadb1e8e67e4c730ad31500f4f480e91bf2c96bd2
parent903878dbde81d011063366928701a202b580f281
_null.h: If g++ 4.1 or any later version is used, use __null for NULL.

This change makes the sentinel attribute work correctly in C++.

It's similar to a recent FreeBSD change:
http://lists.freebsd.org/pipermail/svn-src-all/2009-January/004266.html

We don't check __GNUG__ since it is __cplusplus && __GNUC__ and we check
__cplusplus already.

Approved-by: hasso
sys/sys/_null.h