1
/* -*- buffer-read-only: t -*- vi: set ro: */
2
/* DO NOT EDIT! GENERATED AUTOMATICALLY! */
4
Copyright (C) 2007-2011 Free Software Foundation, Inc.
6
This program is free software: you can redistribute it and/or modify
7
it under the terms of the GNU General Public License as published by
8
the Free Software Foundation; either version 3 of the License, or
9
(at your option) any later version.
11
This program is distributed in the hope that it will be useful,
12
but WITHOUT ANY WARRANTY; without even the implied warranty of
13
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
GNU General Public License for more details.
16
You should have received a copy of the GNU General Public License
17
along with this program. If not, see <http://www.gnu.org/licenses/>. */
19
#ifndef _@GUARD_PREFIX@_LOCALE_H
22
@PRAGMA_SYSTEM_HEADER@
26
/* The include_next requires a split double-inclusion guard. */
27
#@INCLUDE_NEXT@ @NEXT_LOCALE_H@
29
#ifndef _@GUARD_PREFIX@_LOCALE_H
30
#define _@GUARD_PREFIX@_LOCALE_H
32
/* NetBSD 5.0 mis-defines NULL. */
35
/* MacOS X 10.5 defines the locale_t type in <xlocale.h>. */
40
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here. */
42
/* The definition of _GL_ARG_NONNULL is copied here. */
44
/* The definition of _GL_WARN_ON_USE is copied here. */
46
/* The LC_MESSAGES locale category is specified in POSIX, but not in ISO C.
47
On systems that don't define it, use the same value as GNU libintl. */
48
#if !defined LC_MESSAGES
49
# define LC_MESSAGES 1729
52
#if @GNULIB_SETLOCALE@
53
# if @REPLACE_SETLOCALE@
54
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
56
# define setlocale rpl_setlocale
57
# define GNULIB_defined_setlocale 1
59
_GL_FUNCDECL_RPL (setlocale, char *, (int category, const char *locale));
60
_GL_CXXALIAS_RPL (setlocale, char *, (int category, const char *locale));
62
_GL_CXXALIAS_SYS (setlocale, char *, (int category, const char *locale));
64
_GL_CXXALIASWARN (setlocale);
65
#elif defined GNULIB_POSIXCHECK
67
# if HAVE_RAW_DECL_SETLOCALE
68
_GL_WARN_ON_USE (setlocale, "setlocale works differently on native Windows - "
69
"use gnulib module setlocale for portability");
73
#if @GNULIB_DUPLOCALE@
74
# if @REPLACE_DUPLOCALE@
75
# if !(defined __cplusplus && defined GNULIB_NAMESPACE)
77
# define duplocale rpl_duplocale
79
_GL_FUNCDECL_RPL (duplocale, locale_t, (locale_t locale) _GL_ARG_NONNULL ((1)));
80
_GL_CXXALIAS_RPL (duplocale, locale_t, (locale_t locale));
83
_GL_CXXALIAS_SYS (duplocale, locale_t, (locale_t locale));
87
_GL_CXXALIASWARN (duplocale);
89
#elif defined GNULIB_POSIXCHECK
91
# if HAVE_RAW_DECL_DUPLOCALE
92
_GL_WARN_ON_USE (duplocale, "duplocale is buggy on some glibc systems - "
93
"use gnulib module duplocale for portability");
97
#endif /* _@GUARD_PREFIX@_LOCALE_H */
98
#endif /* _@GUARD_PREFIX@_LOCALE_H */