]> Savannah Git Hosting - gnulib.git/commitdiff
setlocale: Trivial simplification.
authorBruno Haible <bruno@clisp.org>
Sat, 11 Aug 2018 18:23:37 +0000 (20:23 +0200)
committerBruno Haible <bruno@clisp.org>
Sun, 12 Aug 2018 14:31:37 +0000 (16:31 +0200)
* lib/setlocale.c (setlocale_unixlike): Remove redundant #if.

ChangeLog
lib/setlocale.c

index 41a277175c29ae195ff823b38a867683e03d36a7..33b1c35e485b6ec9f69d8c7e9c21a8822f088941 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2018-08-11  Bruno Haible  <bruno@clisp.org>
+
+       setlocale: Trivial simplification.
+       * lib/setlocale.c (setlocale_unixlike): Remove redundant #if.
+
 2018-08-11  Paul Eggert  <eggert@cs.ucla.edu>
 
        verify: port 'assume' to traditional tools
index 1ac3f4d66ed5766859a3ae230cb9cce9e5ba4fd3..ef5fb4c2a7b3fd8f4d375cac7af7ac420631fbfa 100644 (file)
@@ -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);