2 Copyright (C) 2007-2009 Free Software Foundation, Inc.
4 This program is free software: you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 3 of the License, or
7 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
14 You should have received a copy of the GNU General Public License
15 along with this program. If not, see <http://www.gnu.org/licenses/>. */
20 @PRAGMA_SYSTEM_HEADER@
23 /* The include_next requires a split double-inclusion guard. */
24 #@INCLUDE_NEXT@ @NEXT_LOCALE_H@
29 /* NetBSD 5.0 mis-defines NULL. */
32 /* MacOS X 10.5 defines the locale_t type in <xlocale.h>. */
37 /* The LC_MESSAGES locale category is specified in POSIX, but not in ISO C.
38 On systems that don't define it, use the same value as GNU libintl. */
39 #if !defined LC_MESSAGES
40 # define LC_MESSAGES 1729
43 #if @GNULIB_DUPLOCALE@
44 # if @REPLACE_DUPLOCALE@
46 # define duplocale rpl_duplocale
47 extern locale_t duplocale (locale_t locale);
49 #elif defined GNULIB_POSIXCHECK
51 # define duplocale(l) \
52 (GL_LINK_WARNING ("duplocale is buggy on some glibc systems - " \
53 "use gnulib module duplocale for portability"), \
57 #endif /* _GL_LOCALE_H */
58 #endif /* _GL_LOCALE_H */