add ext4,vfat and tar.bz2
[u-tools.git] / u-tools / apps / tar / gnu / stddef.in.h
blob2e20422008ca9001c571964e6408d2094003dff2
1 /* -*- buffer-read-only: t -*- vi: set ro: */
2 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */
3 /* A substitute for POSIX 2008 <stddef.h>, for platforms that have issues.
5 Copyright (C) 2009-2011 Free Software Foundation, Inc.
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
10 any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software Foundation,
19 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
21 /* Written by Eric Blake. */
24 * POSIX 2008 <stddef.h> for platforms that have issues.
25 * <http://www.opengroup.org/susv3xbd/stddef.h.html>
28 #if __GNUC__ >= 3
29 @PRAGMA_SYSTEM_HEADER@
30 #endif
31 @PRAGMA_COLUMNS@
33 #if defined __need_wchar_t || defined __need_size_t \
34 || defined __need_ptrdiff_t || defined __need_NULL \
35 || defined __need_wint_t
36 /* Special invocation convention inside gcc header files. In
37 particular, gcc provides a version of <stddef.h> that blindly
38 redefines NULL even when __need_wint_t was defined, even though
39 wint_t is not normally provided by <stddef.h>. Hence, we must
40 remember if special invocation has ever been used to obtain wint_t,
41 in which case we need to clean up NULL yet again. */
43 # if !(defined _GL_STDDEF_H && defined _GL_STDDEF_WINT_T)
44 # ifdef __need_wint_t
45 # undef _GL_STDDEF_H
46 # define _GL_STDDEF_WINT_T
47 # endif
48 # @INCLUDE_NEXT@ @NEXT_STDDEF_H@
49 # endif
51 #else
52 /* Normal invocation convention. */
54 # ifndef _GL_STDDEF_H
56 /* The include_next requires a split double-inclusion guard. */
58 # @INCLUDE_NEXT@ @NEXT_STDDEF_H@
60 # ifndef _GL_STDDEF_H
61 # define _GL_STDDEF_H
63 /* On NetBSD 5.0, the definition of NULL lacks proper parentheses. */
64 #if @REPLACE_NULL@
65 # undef NULL
66 # ifdef __cplusplus
67 /* ISO C++ says that the macro NULL must expand to an integer constant
68 expression, hence '((void *) 0)' is not allowed in C++. */
69 # if __GNUG__ >= 3
70 /* GNU C++ has a __null macro that behaves like an integer ('int' or
71 'long') but has the same size as a pointer. Use that, to avoid
72 warnings. */
73 # define NULL __null
74 # else
75 # define NULL 0L
76 # endif
77 # else
78 # define NULL ((void *) 0)
79 # endif
80 #endif
82 /* Some platforms lack wchar_t. */
83 #if !@HAVE_WCHAR_T@
84 # define wchar_t int
85 #endif
87 # endif /* _GL_STDDEF_H */
88 # endif /* _GL_STDDEF_H */
89 #endif /* __need_XXX */