root / lab4 / .minix-src / include / sys / null.h @ 13
History | View | Annotate | Download (454 Bytes)
1 | 13 | up20180614 | /* $NetBSD: null.h,v 1.9 2010/07/06 11:56:20 kleink Exp $ */
|
---|---|---|---|
2 | |||
3 | /*
|
||
4 | * Written by Klaus Klein <kleink@NetBSD.org>, December 22, 1999.
|
||
5 | * Public domain.
|
||
6 | */
|
||
7 | |||
8 | #ifndef _SYS_NULL_H_
|
||
9 | #define _SYS_NULL_H_
|
||
10 | #ifndef NULL |
||
11 | #if !defined(__GNUG__) || __GNUG__ < 2 || (__GNUG__ == 2 && __GNUC_MINOR__ < 90) |
||
12 | #if !defined(__cplusplus)
|
||
13 | #define NULL ((void *)0) |
||
14 | #else
|
||
15 | #define NULL 0 |
||
16 | #endif /* !__cplusplus */ |
||
17 | #else
|
||
18 | #define NULL __null |
||
19 | #endif
|
||
20 | #endif
|
||
21 | #endif /* _SYS_NULL_H_ */ |