Octave-Forge - Extra packages for GNU Octave | |
Home · Packages · Developers · Documentation · FAQ · Bugs · Mailing Lists · Links · Code |
00001 /* -*- buffer-read-only: t -*- vi: set ro: */ 00002 /* DO NOT EDIT! GENERATED AUTOMATICALLY! */ 00003 /* A substitute for POSIX 2008 <stddef.h>, for platforms that have issues. 00004 00005 Copyright (C) 2009-2011 Free Software Foundation, Inc. 00006 00007 This program is free software; you can redistribute it and/or modify 00008 it under the terms of the GNU General Public License as published by 00009 the Free Software Foundation; either version 3, or (at your option) 00010 any later version. 00011 00012 This program is distributed in the hope that it will be useful, 00013 but WITHOUT ANY WARRANTY; without even the implied warranty of 00014 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00015 GNU General Public License for more details. 00016 00017 You should have received a copy of the GNU General Public License 00018 along with this program; if not, write to the Free Software Foundation, 00019 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ 00020 00021 /* Written by Eric Blake. */ 00022 00023 /* 00024 * POSIX 2008 <stddef.h> for platforms that have issues. 00025 * <http://www.opengroup.org/susv3xbd/stddef.h.html> 00026 */ 00027 00028 #if __GNUC__ >= 3 00029 @PRAGMA_SYSTEM_HEADER@ 00030 #endif 00031 @PRAGMA_COLUMNS@ 00032 00033 #if defined __need_wchar_t || defined __need_size_t \ 00034 || defined __need_ptrdiff_t || defined __need_NULL \ 00035 || defined __need_wint_t 00036 /* Special invocation convention inside gcc header files. In 00037 particular, gcc provides a version of <stddef.h> that blindly 00038 redefines NULL even when __need_wint_t was defined, even though 00039 wint_t is not normally provided by <stddef.h>. Hence, we must 00040 remember if special invocation has ever been used to obtain wint_t, 00041 in which case we need to clean up NULL yet again. */ 00042 00043 # if !(defined _GL_STDDEF_H && defined _GL_STDDEF_WINT_T) 00044 # ifdef __need_wint_t 00045 # undef _GL_STDDEF_H 00046 # define _GL_STDDEF_WINT_T 00047 # endif 00048 # @INCLUDE_NEXT@ @NEXT_STDDEF_H@ 00049 # endif 00050 00051 #else 00052 /* Normal invocation convention. */ 00053 00054 # ifndef _GL_STDDEF_H 00055 00056 /* The include_next requires a split double-inclusion guard. */ 00057 00058 # @INCLUDE_NEXT@ @NEXT_STDDEF_H@ 00059 00060 # ifndef _GL_STDDEF_H 00061 # define _GL_STDDEF_H 00062 00063 /* On NetBSD 5.0, the definition of NULL lacks proper parentheses. */ 00064 #if @REPLACE_NULL@ 00065 # undef NULL 00066 # ifdef __cplusplus 00067 /* ISO C++ says that the macro NULL must expand to an integer constant 00068 expression, hence '((void *) 0)' is not allowed in C++. */ 00069 # if __GNUG__ >= 3 00070 /* GNU C++ has a __null macro that behaves like an integer ('int' or 00071 'long') but has the same size as a pointer. Use that, to avoid 00072 warnings. */ 00073 # define NULL __null 00074 # else 00075 # define NULL 0L 00076 # endif 00077 # else 00078 # define NULL ((void *) 0) 00079 # endif 00080 #endif 00081 00082 /* Some platforms lack wchar_t. */ 00083 #if !@HAVE_WCHAR_T@ 00084 # define wchar_t int 00085 #endif 00086 00087 # endif /* _GL_STDDEF_H */ 00088 # endif /* _GL_STDDEF_H */ 00089 #endif /* __need_XXX */