~ubuntu-branches/ubuntu/utopic/gettext/utopic

« back to all changes in this revision

Viewing changes to gettext-tools/gnulib-lib/locale.in.h

  • Committer: Colin Watson
  • Date: 2010-08-01 21:36:08 UTC
  • mfrom: (2.1.10 sid)
  • Revision ID: cjwatson@canonical.com-20100801213608-yy7vkm8lpatep3ci
merge from Debian 0.18.1.1-1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* A POSIX <locale.h>.
2
 
   Copyright (C) 2007 Free Software Foundation, Inc.
 
2
   Copyright (C) 2007-2010 Free Software Foundation, Inc.
3
3
 
4
4
   This program is free software: you can redistribute it and/or modify
5
5
   it under the terms of the GNU General Public License as published by
16
16
 
17
17
#ifndef _GL_LOCALE_H
18
18
 
 
19
#if __GNUC__ >= 3
 
20
@PRAGMA_SYSTEM_HEADER@
 
21
#endif
 
22
 
19
23
/* The include_next requires a split double-inclusion guard.  */
20
24
#@INCLUDE_NEXT@ @NEXT_LOCALE_H@
21
25
 
22
26
#ifndef _GL_LOCALE_H
23
27
#define _GL_LOCALE_H
24
28
 
 
29
/* NetBSD 5.0 mis-defines NULL.  */
 
30
#include <stddef.h>
 
31
 
 
32
/* MacOS X 10.5 defines the locale_t type in <xlocale.h>.  */
 
33
#if @HAVE_XLOCALE_H@
 
34
# include <xlocale.h>
 
35
#endif
 
36
 
 
37
/* The definitions of _GL_FUNCDECL_RPL etc. are copied here.  */
 
38
 
 
39
/* The definition of _GL_ARG_NONNULL is copied here.  */
 
40
 
 
41
/* The definition of _GL_WARN_ON_USE is copied here.  */
 
42
 
25
43
/* The LC_MESSAGES locale category is specified in POSIX, but not in ISO C.
26
44
   On systems that don't define it, use the same value as GNU libintl.  */
27
45
#if !defined LC_MESSAGES
28
46
# define LC_MESSAGES 1729
29
47
#endif
30
48
 
 
49
#if @GNULIB_DUPLOCALE@
 
50
# if @REPLACE_DUPLOCALE@
 
51
#  if !(defined __cplusplus && defined GNULIB_NAMESPACE)
 
52
#   undef duplocale
 
53
#   define duplocale rpl_duplocale
 
54
#  endif
 
55
_GL_FUNCDECL_RPL (duplocale, locale_t, (locale_t locale) _GL_ARG_NONNULL ((1)));
 
56
_GL_CXXALIAS_RPL (duplocale, locale_t, (locale_t locale));
 
57
# else
 
58
#  if @HAVE_DUPLOCALE@
 
59
_GL_CXXALIAS_SYS (duplocale, locale_t, (locale_t locale));
 
60
#  endif
 
61
# endif
 
62
# if @HAVE_DUPLOCALE@
 
63
_GL_CXXALIASWARN (duplocale);
 
64
# endif
 
65
#elif defined GNULIB_POSIXCHECK
 
66
# undef duplocale
 
67
# if HAVE_RAW_DECL_DUPLOCALE
 
68
_GL_WARN_ON_USE (duplocale, "duplocale is buggy on some glibc systems - "
 
69
                 "use gnulib module duplocale for portability");
 
70
# endif
 
71
#endif
 
72
 
31
73
#endif /* _GL_LOCALE_H */
32
74
#endif /* _GL_LOCALE_H */