]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Always use __null to define NULL for GCC 4+. Use '0' rather than
authorjhb <jhb@FreeBSD.org>
Mon, 11 May 2009 17:29:11 +0000 (17:29 +0000)
committerjhb <jhb@FreeBSD.org>
Mon, 11 May 2009 17:29:11 +0000 (17:29 +0000)
commit67e806b2d0ec50eb6b1132ee76a31b56be291167
tree6e2f2a178f802b9d5d456200df4e8f69cc4d449f
parent6d18ae1832ee3bb4cd45294e297777fccd4ee6ef
Always use __null to define NULL for GCC 4+.  Use '0' rather than
'(void *)0' for NULL for C++ compilers compiling kernel code.  Together this
makes it easier to build kernel modules using C++.

Reviewed by: imp
MFC after: 3 days
sys/sys/_null.h