From 1945403c96c533137ea6916ad5a220050d176fd0 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 11 Aug 2018 20:23:37 +0200 Subject: [PATCH] setlocale: Trivial simplification. * lib/setlocale.c (setlocale_unixlike): Remove redundant #if. --- ChangeLog | 5 +++++ lib/setlocale.c | 2 -- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 41a277175c..33b1c35e48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2018-08-11 Bruno Haible + + setlocale: Trivial simplification. + * lib/setlocale.c (setlocale_unixlike): Remove redundant #if. + 2018-08-11 Paul Eggert verify: port 'assume' to traditional tools diff --git a/lib/setlocale.c b/lib/setlocale.c index 1ac3f4d66e..ef5fb4c2a7 100644 --- a/lib/setlocale.c +++ b/lib/setlocale.c @@ -635,10 +635,8 @@ setlocale_unixlike (int category, const char *locale) /* The native Windows implementation of setlocale understands the special locale name "C", but not "POSIX". Therefore map "POSIX" to "C". */ -#if defined _WIN32 && !defined __CYGWIN__ if (locale != NULL && strcmp (locale, "POSIX") == 0) locale = "C"; -#endif /* First, try setlocale with the original argument unchanged. */ result = setlocale (category, locale); -- 2.39.5