williamr@2
|
1 |
/*-
|
williamr@2
|
2 |
* Copyright (c) 2003 Marcel Moolenaar
|
williamr@2
|
3 |
* All rights reserved.
|
williamr@2
|
4 |
*
|
williamr@2
|
5 |
* Redistribution and use in source and binary forms, with or without
|
williamr@2
|
6 |
* modification, are permitted provided that the following conditions
|
williamr@2
|
7 |
* are met:
|
williamr@2
|
8 |
*
|
williamr@2
|
9 |
* 1. Redistributions of source code must retain the above copyright
|
williamr@2
|
10 |
* notice, this list of conditions and the following disclaimer.
|
williamr@2
|
11 |
* 2. Redistributions in binary form must reproduce the above copyright
|
williamr@2
|
12 |
* notice, this list of conditions and the following disclaimer in the
|
williamr@2
|
13 |
* documentation and/or other materials provided with the distribution.
|
williamr@2
|
14 |
*
|
williamr@2
|
15 |
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
williamr@2
|
16 |
* IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
williamr@2
|
17 |
* OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
williamr@2
|
18 |
* IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
williamr@2
|
19 |
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
williamr@2
|
20 |
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
williamr@2
|
21 |
* DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
williamr@2
|
22 |
* THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
williamr@2
|
23 |
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
williamr@2
|
24 |
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
williamr@2
|
25 |
*
|
williamr@2
|
26 |
* $FreeBSD: src/sys/sys/_null.h,v 1.7 2005/01/07 02:29:23 imp Exp $
|
williamr@2
|
27 |
*/
|
williamr@2
|
28 |
|
williamr@2
|
29 |
#ifndef NULL
|
williamr@2
|
30 |
#if defined(_KERNEL) || !defined(__cplusplus)
|
williamr@2
|
31 |
#define NULL ((void *)0)
|
williamr@2
|
32 |
#else
|
williamr@2
|
33 |
#if defined(__LP64__)
|
williamr@2
|
34 |
#define NULL (0L)
|
williamr@2
|
35 |
#else
|
williamr@2
|
36 |
#define NULL 0
|
williamr@2
|
37 |
#endif /* __LP64__ */
|
williamr@2
|
38 |
#endif /* _KERNEL || !__cplusplus */
|
williamr@2
|
39 |
|
williamr@2
|
40 |
#endif
|