summaryrefslogtreecommitdiff
path: root/lib/locale.in.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2009-12-11 01:15:28 +0100
committerBruno Haible <bruno@clisp.org>2009-12-11 01:15:28 +0100
commit6948250861edce048d7bb3c6b47d13fa3649905e (patch)
treec3d1c4a2e42938d93a07095345cb18567fa44710 /lib/locale.in.h
parent441aa3044f43e5572f58c354f01e6bc070acd5c7 (diff)
downloadgnulib-6948250861edce048d7bb3c6b47d13fa3649905e.tar.gz
New module 'arg-nonnull'. Declare which arguments expect non-NULL values.
Diffstat (limited to 'lib/locale.in.h')
-rw-r--r--lib/locale.in.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/locale.in.h b/lib/locale.in.h
index 08d05741da..478795ad17 100644
--- a/lib/locale.in.h
+++ b/lib/locale.in.h
@@ -34,6 +34,8 @@
# include <xlocale.h>
#endif
+/* The definition of _GL_ARG_NONNULL is copied here. */
+
/* The LC_MESSAGES locale category is specified in POSIX, but not in ISO C.
On systems that don't define it, use the same value as GNU libintl. */
#if !defined LC_MESSAGES
@@ -44,7 +46,7 @@
# if @REPLACE_DUPLOCALE@
# undef duplocale
# define duplocale rpl_duplocale
-extern locale_t duplocale (locale_t locale);
+extern locale_t duplocale (locale_t locale) _GL_ARG_NONNULL ((1));
# endif
#elif defined GNULIB_POSIXCHECK
# undef duplocale