summaryrefslogtreecommitdiff
path: root/lib/hard-locale.c
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-09-10 08:48:30 +0000
committerJim Meyering <jim@meyering.net>2003-09-10 08:48:30 +0000
commit156136264062168dbbc5bbce143488cbe3c60ba6 (patch)
tree436fdb34cb61756e2690e3ef8711f5b117809a98 /lib/hard-locale.c
parentccddbf4faf0cc343cdf75c31d77113dee12f1927 (diff)
downloadcoreutils-156136264062168dbbc5bbce143488cbe3c60ba6.tar.xz
Include hard-locale.h first.
Include <stdlib.h>, <string.h> unconditionally.
Diffstat (limited to 'lib/hard-locale.c')
-rw-r--r--lib/hard-locale.c15
1 files changed, 5 insertions, 10 deletions
diff --git a/lib/hard-locale.c b/lib/hard-locale.c
index 0070542e0..8c0ee8c77 100644
--- a/lib/hard-locale.c
+++ b/lib/hard-locale.c
@@ -1,6 +1,6 @@
/* hard-locale.c -- Determine whether a locale is hard.
- Copyright (C) 1997, 1998, 1999, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1997, 1998, 1999, 2002, 2003 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -20,19 +20,14 @@
# include <config.h>
#endif
+#include "hard-locale.h"
+
#if HAVE_LOCALE_H
# include <locale.h>
#endif
-#if HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-
-#if HAVE_STRING_H
-# include <string.h>
-#endif
-
-#include "hard-locale.h"
+#include <stdlib.h>
+#include <string.h>
/* Return nonzero if the current CATEGORY locale is hard, i.e. if you
can't get away with assuming traditional C or POSIX behavior. */