summaryrefslogtreecommitdiff
path: root/lib/setlocale_null.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2019-12-22 19:34:41 +0100
committerBruno Haible <bruno@clisp.org>2019-12-22 19:34:41 +0100
commitab3c9473eee5516e2425be7ad3ebe1bd16fa725a (patch)
treefb3e02cd3c3c060ec2052748b4335c63729ce450 /lib/setlocale_null.c
parent74528fe27f84f75ed94b2713b9176a06ebe2cb42 (diff)
downloadgnulib-ab3c9473eee5516e2425be7ad3ebe1bd16fa725a.tar.gz
setlocale-null: Add standalone include file.
* lib/setlocale_null.h: New file, extracted from lib/locale.in.h. * lib/locale.in.h: Include setlocale_null.h. (SETLOCALE_NULL_MAX, SETLOCALE_NULL_ALL_MAX, setlocale_null_r, setlocale_null): Remove declarations. * lib/setlocale_null.c: Include setlocale_null.h. * lib/localename.c: Likewise. * modules/setlocale-null (Files): Add lib/setlocale_null.h. (Depends-on): Add snippet/arg-nonnull. (Include): Allow either "setlocale_null.h" or <locale.h>.
Diffstat (limited to 'lib/setlocale_null.c')
-rw-r--r--lib/setlocale_null.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/setlocale_null.c b/lib/setlocale_null.c
index c20125709a..d676630a6a 100644
--- a/lib/setlocale_null.c
+++ b/lib/setlocale_null.c
@@ -19,9 +19,10 @@
#include <config.h>
/* Specification. */
-#include <locale.h>
+#include "setlocale_null.h"
#include <errno.h>
+#include <locale.h>
#include <stdlib.h>
#include <string.h>
#if defined _WIN32 && !defined __CYGWIN__