Back to index

nagios-plugins  1.4.16
locale.in.h
Go to the documentation of this file.
00001 /* A POSIX <locale.h>.
00002    Copyright (C) 2007-2010 Free Software Foundation, Inc.
00003 
00004    This program is free software: you can redistribute it and/or modify
00005    it under the terms of the GNU General Public License as published by
00006    the Free Software Foundation; either version 3 of the License, or
00007    (at your option) any later version.
00008 
00009    This program is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00012    GNU General Public License for more details.
00013 
00014    You should have received a copy of the GNU General Public License
00015    along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
00016 
00017 #ifndef _GL_LOCALE_H
00018 
00019 #if __GNUC__ >= 3
00020 @PRAGMA_SYSTEM_HEADER@
00021 #endif
00022 
00023 /* The include_next requires a split double-inclusion guard.  */
00024 #@INCLUDE_NEXT@ @NEXT_LOCALE_H@
00025 
00026 #ifndef _GL_LOCALE_H
00027 #define _GL_LOCALE_H
00028 
00029 /* NetBSD 5.0 mis-defines NULL.  */
00030 #include <stddef.h>
00031 
00032 /* MacOS X 10.5 defines the locale_t type in <xlocale.h>.  */
00033 #if @HAVE_XLOCALE_H@
00034 # include <xlocale.h>
00035 #endif
00036 
00037 /* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
00038 
00039 /* The definition of _GL_ARG_NONNULL is copied here.  */
00040 
00041 /* The definition of _GL_WARN_ON_USE is copied here.  */
00042 
00043 /* The LC_MESSAGES locale category is specified in POSIX, but not in ISO C.
00044    On systems that don't define it, use the same value as GNU libintl.  */
00045 #if !defined LC_MESSAGES
00046 # define LC_MESSAGES 1729
00047 #endif
00048 
00049 #if @GNULIB_DUPLOCALE@
00050 # if @REPLACE_DUPLOCALE@
00051 #  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
00052 #   undef duplocale
00053 #   define duplocale rpl_duplocale
00054 #  endif
00055 _GL_FUNCDECL_RPL (duplocale, locale_t, (locale_t locale) _GL_ARG_NONNULL ((1)));
00056 _GL_CXXALIAS_RPL (duplocale, locale_t, (locale_t locale));
00057 # else
00058 #  if @HAVE_DUPLOCALE@
00059 _GL_CXXALIAS_SYS (duplocale, locale_t, (locale_t locale));
00060 #  endif
00061 # endif
00062 # if @HAVE_DUPLOCALE@
00063 _GL_CXXALIASWARN (duplocale);
00064 # endif
00065 #elif defined GNULIB_POSIXCHECK
00066 # undef duplocale
00067 # if HAVE_RAW_DECL_DUPLOCALE
00068 _GL_WARN_ON_USE (duplocale, "duplocale is buggy on some glibc systems - "
00069                  "use gnulib module duplocale for portability");
00070 # endif
00071 #endif
00072 
00073 #endif /* _GL_LOCALE_H */
00074 #endif /* _GL_LOCALE_H */