Define NULL as (void *)0, unless C++ is being used.
This commit is contained in:
parent
ce7e811d1d
commit
8b99487c1e
|
@ -1,12 +1,8 @@
|
|||
/* $NetBSD: null.h,v 1.4 2000/05/19 18:57:48 thorpej Exp $ */
|
||||
/* $NetBSD: null.h,v 1.5 2003/10/21 03:27:32 fvdl Exp $ */
|
||||
|
||||
#ifndef NULL
|
||||
#if !defined(__GNUG__) || __GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 90)
|
||||
#if defined(__AUDIT__) && !defined(__cplusplus)
|
||||
/*
|
||||
* This will cause GCC to emit a warning if you attempt to use NULL
|
||||
* with some non-pointer object, return value, etc.
|
||||
*/
|
||||
#if !defined(__cplusplus)
|
||||
#define NULL (void *)0
|
||||
#else
|
||||
#define NULL 0
|
||||
|
|
Loading…
Reference in New Issue