]> Savannah Git Hosting - gnulib.git/commitdiff
nl_langinfo: Fix last change.
authorEli Zaretskii <eliz@gnu.org>
Thu, 10 Jul 2014 15:21:00 +0000 (18:21 +0300)
committerEric Blake <eblake@redhat.com>
Thu, 10 Jul 2014 15:52:39 +0000 (09:52 -0600)
Don't include stdio.h and windows.h twice on MS-Windows.  Also, define
WIN32_LEAN_AND_MEAN before including windows.h.

Signed-off-by: Eric Blake <eblake@redhat.com>
ChangeLog
lib/nl_langinfo.c

index 1de9b52e48b40cb13f9830351b32c4bff049b59f..4e8a5d334f364d6ad2d1977fc2311de415fba1ac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-07-10  Eli Zaretskii <eliz@gnu.org>
+
+       nl_langinfo: Fix last change.
+       * lib/nl_langinfo.c (includes): Drop redundant include.
+
 2014-07-10  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
        error: Fix -Wundef warnings in glibc
index b5f2000d2d164049563191764909047ff2a6b65f..1ab551d090839e03ea7366b53e34682ee3b20ed7 100644 (file)
@@ -23,6 +23,7 @@
 #include <locale.h>
 #include <string.h>
 #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# define WIN32_LEAN_AND_MEAN  /* avoid including junk */
 # include <windows.h>
 # include <stdio.h>
 #endif
@@ -140,22 +141,9 @@ rpl_nl_langinfo (nl_item item)
 
 #else
 
-/* Provide nl_langinfo from scratch.  */
-
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
-
-/* Native Windows platforms.  */
-
-#  define WIN32_LEAN_AND_MEAN  /* avoid including junk */
-#  include <windows.h>
-
-#  include <stdio.h>
-
-# else
-
-/* An old Unix platform without locales, such as Linux libc5 or BeOS.  */
-
-# endif
+/* Provide nl_langinfo from scratch, either for native MS-Windows, or
+   for old Unix platforms without locales, such as Linux libc5 or
+   BeOS.  */
 
 # include <time.h>