# HG changeset patch # User Bruno Haible # Date 1534011817 -7200 # Node ID 30b98859ed4a194ae2f7e5f769c69247415a4262 # Parent ea4a44483d25ed437a26c505139b7899974f0acd setlocale: Trivial simplification. * lib/setlocale.c (setlocale_unixlike): Remove redundant #if. diff -r ea4a44483d25 -r 30b98859ed4a ChangeLog --- a/ChangeLog Sat Aug 11 18:58:55 2018 -0700 +++ b/ChangeLog Sat Aug 11 20:23:37 2018 +0200 @@ -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 -r ea4a44483d25 -r 30b98859ed4a lib/setlocale.c --- a/lib/setlocale.c Sat Aug 11 18:58:55 2018 -0700 +++ b/lib/setlocale.c Sat Aug 11 20:23:37 2018 +0200 @@ -635,10 +635,8 @@ /* 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);