summaryrefslogtreecommitdiff
path: root/locale
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2009-03-09 14:35:26 +0000
committerJakub Jelinek <jakub@redhat.com>2009-03-09 14:35:26 +0000
commit5c1d419918b3637170da9a5592049048aaf0ee49 (patch)
tree8ad672f8707275fdbeaf5b8a45eeb2bc8144623a /locale
parent48da74123eca38beeaec03d3d46ba09f069ef7dc (diff)
Updated to fedora-glibc-20090309T1421cvs/fedora-glibc-2_9_90-9
Diffstat (limited to 'locale')
-rw-r--r--locale/langinfo.h2
-rw-r--r--locale/locale.h6
-rw-r--r--locale/xlocale.h5
3 files changed, 7 insertions, 6 deletions
diff --git a/locale/langinfo.h b/locale/langinfo.h
index 84f53ef172..59017b31c8 100644
--- a/locale/langinfo.h
+++ b/locale/langinfo.h
@@ -582,7 +582,7 @@ enum
extern char *nl_langinfo (nl_item __item) __THROW;
-#ifdef __USE_GNU
+#ifdef __USE_XOPEN2K
/* This interface is for the extended locale model. See <locale.h> for
more information. */
diff --git a/locale/locale.h b/locale/locale.h
index 08fc531d7e..b24ae245fe 100644
--- a/locale/locale.h
+++ b/locale/locale.h
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991,1992,1995-2002,2007 Free Software Foundation, Inc.
+/* Copyright (C) 1991,1992,1995-2002,2007,2009 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -130,7 +130,7 @@ extern struct lconv *localeconv (void) __THROW;
__END_NAMESPACE_STD
-#ifdef __USE_GNU
+#ifdef __USE_XOPEN2K
/* The concept of one static locale per category is not very well
thought out. Many applications will need to process its data using
information from several different locales. Another application is
@@ -145,8 +145,6 @@ __END_NAMESPACE_STD
/* Get locale datatype definition. */
# include <xlocale.h>
-typedef __locale_t locale_t;
-
/* Return a reference to a data structure representing a set of locale
datasets. Unlike for the CATEGORY parameter for `setlocale' the
CATEGORY_MASK parameter here uses a single bit for each category,
diff --git a/locale/xlocale.h b/locale/xlocale.h
index 2b17d6973f..e879212b79 100644
--- a/locale/xlocale.h
+++ b/locale/xlocale.h
@@ -1,5 +1,5 @@
/* Definition of locale datatype.
- Copyright (C) 1997,2000,02 Free Software Foundation, Inc.
+ Copyright (C) 1997,2000,2002,2009 Free Software Foundation, Inc.
This file is part of the GNU C Library.
Contributed by Ulrich Drepper <drepper@cygnus.com>, 1997.
@@ -39,4 +39,7 @@ typedef struct __locale_struct
const char *__names[13];
} *__locale_t;
+/* POSIX 2008 makes locale_t official. */
+typedef __locale_t locale_t;
+
#endif /* xlocale.h */