summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2004-12-02 06:56:08 +0000
committerPaul Eggert <eggert@cs.ucla.edu>2004-12-02 06:56:08 +0000
commitbba741d6c298fc2048fdc398db23ecea77666a55 (patch)
tree3d52e2deeb1125f186e61cefd36be62a31012cfd /src
parent543696d559816f49263ce1d05f858f22d4f1e92c (diff)
downloadcoreutils-bba741d6c298fc2048fdc398db23ecea77666a55.tar.xz
Assume locale.h exists.
(HAVE_SETLOCALE): Remove.
Diffstat (limited to 'src')
-rw-r--r--src/system.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/system.h b/src/system.h
index 79ceb7748..27aff00d7 100644
--- a/src/system.h
+++ b/src/system.h
@@ -466,13 +466,9 @@ initialize_exit_failure (int status)
errors that the cast doesn't. */
static inline unsigned char to_uchar (char ch) { return ch; }
-/* Take care of NLS matters. */
+#include <locale.h>
-#if HAVE_LOCALE_H
-# include <locale.h>
-#else
-# define setlocale(Category, Locale) /* empty */
-#endif
+/* Take care of NLS matters. */
#include "gettext.h"
#if ! ENABLE_NLS
@@ -485,10 +481,6 @@ static inline unsigned char to_uchar (char ch) { return ch; }
#define _(msgid) gettext (msgid)
#define N_(msgid) msgid
-#ifndef HAVE_SETLOCALE
-# define HAVE_SETLOCALE 0
-#endif
-
#define STREQ(a, b) (strcmp ((a), (b)) == 0)
#if !HAVE_DECL_FREE