Update PGP key.
[shishi.git] / gl / wchar_.h
blob6e04ccca7f278e3e37ff85a78881e76281c0d1a7
1 /* A substitute for ISO C99 <wchar.h>, for platforms that have issues.
3 Copyright (C) 2007 Free Software Foundation, Inc.
5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2, or (at your option)
8 any later version.
10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details.
15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software Foundation,
17 Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
19 /* Written by Eric Blake. */
22 * ISO C 99 <wchar.h> for platforms that have issues.
23 * <http://www.opengroup.org/susv3xbd/wchar.h.html>
25 * For now, this just ensures proper prerequisite inclusion order.
28 #ifndef _GL_WCHAR_H
30 /* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before
31 <wchar.h>.
32 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be
33 included before <wchar.h>. */
34 #include <stddef.h>
35 #include <stdio.h>
36 #include <time.h>
38 /* Include the original <wchar.h> if it exists.
39 Some builds of uClibc lack it. */
40 /* The include_next requires a split double-inclusion guard. */
41 #if @HAVE_WCHAR_H@
42 # if @HAVE_INCLUDE_NEXT@
43 # include_next <wchar.h>
44 # else
45 # include @ABSOLUTE_WCHAR_H@
46 # endif
47 #endif
49 #ifndef _GL_WCHAR_H
50 #define _GL_WCHAR_H
52 #endif /* _GL_WCHAR_H */
53 #endif /* _GL_WCHAR_H */