]> Savannah Git Hosting - gnulib.git/commitdiff
Simplify code. Drop support for Borland C++ on Windows.
authorBruno Haible <bruno@clisp.org>
Thu, 3 May 2018 21:09:42 +0000 (23:09 +0200)
committerBruno Haible <bruno@clisp.org>
Thu, 3 May 2018 21:10:51 +0000 (23:10 +0200)
Reported by Gisle Vanem <gisle.vanem@gmail.com>.

* lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
'defined _WIN32'.
* lib/canonicalize-lgpl.c: Likewise.
* lib/classpath.c: Likewise.
* lib/clean-temp.c: Likewise.
* lib/csharpexec.c: Likewise.
* lib/ctime.c: Likewise.
* lib/dosname.h: Likewise.
* lib/dup2.c: Likewise.
* lib/errno.in.h: Likewise.
* lib/error.c: Likewise.
* lib/euidaccess.c: Likewise.
* lib/execute.c: Likewise.
* lib/fcntl.in.h: Likewise.
* lib/fcntl.c: Likewise.
* lib/filename.h: Likewise.
* lib/findprog.c: Likewise.
* lib/flock.c: Likewise.
* lib/fopen.c: Likewise.
* lib/freopen.c: Likewise.
* lib/fstat.c: Likewise.
* lib/fsync.c: Likewise.
* lib/gc-gnulib.c: Likewise.
* lib/get-rusage-data.c: Likewise.
* lib/getaddrinfo.c: Likewise.
* lib/getdelim.c: Likewise.
* lib/getdtablesize.c: Likewise.
* lib/gethostname.c: Likewise.
* lib/getlogin.c: Likewise.
* lib/getlogin_r.c: Likewise.
* lib/getopt.c: Likewise.
* lib/getpagesize.c: Likewise.
* lib/getpass.c: Likewise.
* lib/getrusage.c: Likewise.
* lib/gettimeofday.c: Likewise.
* lib/glob.c: Likewise.
* lib/inttypes.in.h: Likewise.
* lib/isapipe.c: Likewise.
* lib/javaexec.c: Likewise.
* lib/link.c: Likewise.
* lib/localcharset.c: Likewise.
* lib/localename.h: Likewise.
* lib/localename.c: Likewise.
* lib/localtime.c: Likewise.
* lib/lseek.c: Likewise.
* lib/mbsinit.c: Likewise.
* lib/mkdir.c: Likewise.
* lib/msvc-nothrow.h: Likewise.
* lib/nanosleep.c: Likewise.
* lib/nl_langinfo.c: Likewise.
* lib/nonblocking.c: Likewise.
* lib/nproc.c: Likewise.
* lib/open.c: Likewise.
* lib/openpty.c: Likewise.
* lib/pathmax.h: Likewise.
* lib/pipe-filter-aux.c: Likewise.
* lib/pipe-filter-gi.c: Likewise.
* lib/pipe-filter-ii.c: Likewise.
* lib/pipe.c: Likewise.
* lib/pipe2.c: Likewise.
* lib/poll.c: Likewise.
* lib/popen.c: Likewise.
* lib/posix_openpt.c: Likewise.
* lib/printf-parse.c: Likewise.
* lib/progreloc.c: Likewise.
* lib/putenv.c: Likewise.
* lib/read.c: Likewise.
* lib/relocatable.c: Likewise.
* lib/rename.c: Likewise.
* lib/same-inode.h: Likewise.
* lib/secure_getenv.c: Likewise.
* lib/select.c: Likewise.
* lib/sethostname.c: Likewise.
* lib/setlocale.c: Likewise.
* lib/sigaction.c: Likewise.
* lib/sigprocmask.c: Likewise.
* lib/sleep.c: Likewise.
* lib/spawn-pipe.h: Likewise.
* lib/spawn-pipe.c: Likewise.
* lib/spawni.c: Likewise.
* lib/stat-time.h: Likewise.
* lib/stat-w32.c: Likewise.
* lib/stat.c: Likewise.
* lib/stdio.in.h: Likewise.
* lib/stdio-impl.h: Likewise.
* lib/stdio-read.c: Likewise.
* lib/stdio-write.c: Likewise.
* lib/stdlib.in.h: Likewise.
* lib/strerror_r.c: Likewise.
* lib/strftime-fixes.c: Likewise.
* lib/sys_stat.in.h: Likewise.
* lib/sys_types.in.h: Likewise.
* lib/sys_wait.in.h : Likewise.
* lib/system-quote.h: Likewise.
* lib/system-quote.c: Likewise.
* lib/tmpdir.c: Likewise.
* lib/tzset.c: Likewise.
* lib/uname.c: Likewise.
* lib/unistd.in.h: Likewise.
* lib/utime.in.h: Likewise.
* lib/utime.c: Likewise.
* lib/utimecmp.c: Likewise.
* lib/utimens.c: Likewise.
* lib/vasnprintf.c: Likewise.
* lib/vma-iter.h: Likewise.
* lib/vma-iter.c: Likewise.
* lib/wait-process.c: Likewise.
* lib/wcsftime.c: Likewise.
* lib/wctype.in.h: Likewise.
* lib/write.c: Likewise.
* tests/nap.h: Likewise.
* tests/test-cloexec.c: Likewise.
* tests/test-dup-safer.c: Likewise.
* tests/test-dup2.c: Likewise.
* tests/test-dup3.c: Likewise.
* tests/test-fcntl.c: Likewise.
* tests/test-get-rusage-data.c: Likewise.
* tests/test-getaddrinfo.c: Likewise.
* tests/test-getlogin.h: Likewise.
* tests/test-isatty.c: Likewise.
* tests/test-localename.c: Likewise.
* tests/test-mbrtowc-w32.c: Likewise.
* tests/test-nonblocking.c: Likewise.
* tests/test-nonblocking-pipe-main.c: Likewise.
* tests/test-nonblocking-socket-main.c: Likewise.
* tests/test-nonblocking-socket.h: Likewise.
* tests/test-pipe.c: Likewise.
* tests/test-pipe2.c: Likewise.
* tests/test-poll.c: Likewise.
* tests/test-pthread_sigmask1.c: Likewise.
* tests/test-select.h: Likewise.
* tests/test-sethostname2.c: Likewise.
* tests/test-sigprocmask.c: Likewise.
* tests/test-spawn-pipe-child.c: Likewise.
* tests/test-stat-time.c: Likewise.
* tests/test-system-quote-main.c: Likewise.
* tests/test-utimens-common.h: Likewise.
* tests/test-wcrtomb-w32.c: Likewise.
* m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
* m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
* m4/javacomp.m4 (gt_JAVACOMP): Likewise.
* m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
* m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
* m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
* m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
* m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
* m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
* m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
* m4/nocrash.m4 (GL_NOCRASH): Likewise.
* m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
* m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
* m4/stdio_h.m4 (gl_STDIO_H): Likewise.
* m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
* m4/unistd_h.m4 (gl_UNISTD_H): Likewise.

154 files changed:
ChangeLog
lib/accept4.c
lib/canonicalize-lgpl.c
lib/classpath.c
lib/clean-temp.c
lib/csharpexec.c
lib/ctime.c
lib/dosname.h
lib/dup2.c
lib/errno.in.h
lib/error.c
lib/euidaccess.c
lib/execute.c
lib/fcntl.c
lib/fcntl.in.h
lib/filename.h
lib/findprog.c
lib/flock.c
lib/fopen.c
lib/freopen.c
lib/fstat.c
lib/fsync.c
lib/gc-gnulib.c
lib/get-rusage-data.c
lib/getaddrinfo.c
lib/getdelim.c
lib/getdtablesize.c
lib/gethostname.c
lib/getlogin.c
lib/getlogin_r.c
lib/getopt.c
lib/getpagesize.c
lib/getpass.c
lib/getrusage.c
lib/gettimeofday.c
lib/glob.c
lib/inttypes.in.h
lib/isapipe.c
lib/javaexec.c
lib/link.c
lib/localcharset.c
lib/localename.c
lib/localename.h
lib/localtime.c
lib/lseek.c
lib/mbsinit.c
lib/mkdir.c
lib/msvc-nothrow.h
lib/nanosleep.c
lib/nl_langinfo.c
lib/nonblocking.c
lib/nproc.c
lib/open.c
lib/openpty.c
lib/pathmax.h
lib/pipe-filter-aux.c
lib/pipe-filter-gi.c
lib/pipe-filter-ii.c
lib/pipe.c
lib/pipe2.c
lib/poll.c
lib/popen.c
lib/posix_openpt.c
lib/printf-parse.c
lib/progreloc.c
lib/putenv.c
lib/read.c
lib/relocatable.c
lib/rename.c
lib/same-inode.h
lib/secure_getenv.c
lib/select.c
lib/sethostname.c
lib/setlocale.c
lib/sigaction.c
lib/sigprocmask.c
lib/sleep.c
lib/spawn-pipe.c
lib/spawn-pipe.h
lib/spawni.c
lib/stat-time.h
lib/stat-w32.c
lib/stat.c
lib/stdio-impl.h
lib/stdio-read.c
lib/stdio-write.c
lib/stdio.in.h
lib/stdlib.in.h
lib/strerror_r.c
lib/strftime-fixes.c
lib/sys_stat.in.h
lib/sys_types.in.h
lib/sys_wait.in.h
lib/system-quote.c
lib/system-quote.h
lib/tmpdir.c
lib/tzset.c
lib/uname.c
lib/unistd.in.h
lib/utime.c
lib/utime.in.h
lib/utimecmp.c
lib/utimens.c
lib/vasnprintf.c
lib/vma-iter.c
lib/vma-iter.h
lib/wait-process.c
lib/wcsftime.c
lib/wctype.in.h
lib/write.c
m4/csharpexec.m4
m4/getcwd.m4
m4/javacomp.m4
m4/javaexec.m4
m4/locale-ar.m4
m4/locale-fr.m4
m4/locale-ja.m4
m4/locale-tr.m4
m4/locale-zh.m4
m4/malloc.m4
m4/nocrash.m4
m4/pathmax.m4
m4/ptsname_r.m4
m4/stdio_h.m4
m4/tmpfile.m4
m4/unistd_h.m4
tests/nap.h
tests/test-cloexec.c
tests/test-dup-safer.c
tests/test-dup2.c
tests/test-dup3.c
tests/test-fcntl.c
tests/test-get-rusage-data.c
tests/test-getaddrinfo.c
tests/test-getlogin.h
tests/test-isatty.c
tests/test-localename.c
tests/test-mbrtowc-w32.c
tests/test-nonblocking-pipe-main.c
tests/test-nonblocking-socket-main.c
tests/test-nonblocking-socket.h
tests/test-nonblocking.c
tests/test-pipe.c
tests/test-pipe2.c
tests/test-poll.c
tests/test-pthread_sigmask1.c
tests/test-select.h
tests/test-sethostname2.c
tests/test-sigprocmask.c
tests/test-spawn-pipe-child.c
tests/test-stat-time.c
tests/test-system-quote-main.c
tests/test-utimens-common.h
tests/test-wcrtomb-w32.c

index 990fb2499127f79acc01ed460c0a2c8b5c3afd9a..712f62b53c0306996d7222c7a8b0927219d6a80f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,162 @@
+2018-05-03  Bruno Haible  <bruno@clisp.org>
+
+       Simplify code. Drop support for Borland C++ on Windows.
+       Reported by Gisle Vanem <gisle.vanem@gmail.com>.
+       * lib/accept4.c: Simplify 'defined _WIN32 || defined __WIN32__' to just
+       'defined _WIN32'.
+       * lib/canonicalize-lgpl.c: Likewise.
+       * lib/classpath.c: Likewise.
+       * lib/clean-temp.c: Likewise.
+       * lib/csharpexec.c: Likewise.
+       * lib/ctime.c: Likewise.
+       * lib/dosname.h: Likewise.
+       * lib/dup2.c: Likewise.
+       * lib/errno.in.h: Likewise.
+       * lib/error.c: Likewise.
+       * lib/euidaccess.c: Likewise.
+       * lib/execute.c: Likewise.
+       * lib/fcntl.in.h: Likewise.
+       * lib/fcntl.c: Likewise.
+       * lib/filename.h: Likewise.
+       * lib/findprog.c: Likewise.
+       * lib/flock.c: Likewise.
+       * lib/fopen.c: Likewise.
+       * lib/freopen.c: Likewise.
+       * lib/fstat.c: Likewise.
+       * lib/fsync.c: Likewise.
+       * lib/gc-gnulib.c: Likewise.
+       * lib/get-rusage-data.c: Likewise.
+       * lib/getaddrinfo.c: Likewise.
+       * lib/getdelim.c: Likewise.
+       * lib/getdtablesize.c: Likewise.
+       * lib/gethostname.c: Likewise.
+       * lib/getlogin.c: Likewise.
+       * lib/getlogin_r.c: Likewise.
+       * lib/getopt.c: Likewise.
+       * lib/getpagesize.c: Likewise.
+       * lib/getpass.c: Likewise.
+       * lib/getrusage.c: Likewise.
+       * lib/gettimeofday.c: Likewise.
+       * lib/glob.c: Likewise.
+       * lib/inttypes.in.h: Likewise.
+       * lib/isapipe.c: Likewise.
+       * lib/javaexec.c: Likewise.
+       * lib/link.c: Likewise.
+       * lib/localcharset.c: Likewise.
+       * lib/localename.h: Likewise.
+       * lib/localename.c: Likewise.
+       * lib/localtime.c: Likewise.
+       * lib/lseek.c: Likewise.
+       * lib/mbsinit.c: Likewise.
+       * lib/mkdir.c: Likewise.
+       * lib/msvc-nothrow.h: Likewise.
+       * lib/nanosleep.c: Likewise.
+       * lib/nl_langinfo.c: Likewise.
+       * lib/nonblocking.c: Likewise.
+       * lib/nproc.c: Likewise.
+       * lib/open.c: Likewise.
+       * lib/openpty.c: Likewise.
+       * lib/pathmax.h: Likewise.
+       * lib/pipe-filter-aux.c: Likewise.
+       * lib/pipe-filter-gi.c: Likewise.
+       * lib/pipe-filter-ii.c: Likewise.
+       * lib/pipe.c: Likewise.
+       * lib/pipe2.c: Likewise.
+       * lib/poll.c: Likewise.
+       * lib/popen.c: Likewise.
+       * lib/posix_openpt.c: Likewise.
+       * lib/printf-parse.c: Likewise.
+       * lib/progreloc.c: Likewise.
+       * lib/putenv.c: Likewise.
+       * lib/read.c: Likewise.
+       * lib/relocatable.c: Likewise.
+       * lib/rename.c: Likewise.
+       * lib/same-inode.h: Likewise.
+       * lib/secure_getenv.c: Likewise.
+       * lib/select.c: Likewise.
+       * lib/sethostname.c: Likewise.
+       * lib/setlocale.c: Likewise.
+       * lib/sigaction.c: Likewise.
+       * lib/sigprocmask.c: Likewise.
+       * lib/sleep.c: Likewise.
+       * lib/spawn-pipe.h: Likewise.
+       * lib/spawn-pipe.c: Likewise.
+       * lib/spawni.c: Likewise.
+       * lib/stat-time.h: Likewise.
+       * lib/stat-w32.c: Likewise.
+       * lib/stat.c: Likewise.
+       * lib/stdio.in.h: Likewise.
+       * lib/stdio-impl.h: Likewise.
+       * lib/stdio-read.c: Likewise.
+       * lib/stdio-write.c: Likewise.
+       * lib/stdlib.in.h: Likewise.
+       * lib/strerror_r.c: Likewise.
+       * lib/strftime-fixes.c: Likewise.
+       * lib/sys_stat.in.h: Likewise.
+       * lib/sys_types.in.h: Likewise.
+       * lib/sys_wait.in.h : Likewise.
+       * lib/system-quote.h: Likewise.
+       * lib/system-quote.c: Likewise.
+       * lib/tmpdir.c: Likewise.
+       * lib/tzset.c: Likewise.
+       * lib/uname.c: Likewise.
+       * lib/unistd.in.h: Likewise.
+       * lib/utime.in.h: Likewise.
+       * lib/utime.c: Likewise.
+       * lib/utimecmp.c: Likewise.
+       * lib/utimens.c: Likewise.
+       * lib/vasnprintf.c: Likewise.
+       * lib/vma-iter.h: Likewise.
+       * lib/vma-iter.c: Likewise.
+       * lib/wait-process.c: Likewise.
+       * lib/wcsftime.c: Likewise.
+       * lib/wctype.in.h: Likewise.
+       * lib/write.c: Likewise.
+       * tests/nap.h: Likewise.
+       * tests/test-cloexec.c: Likewise.
+       * tests/test-dup-safer.c: Likewise.
+       * tests/test-dup2.c: Likewise.
+       * tests/test-dup3.c: Likewise.
+       * tests/test-fcntl.c: Likewise.
+       * tests/test-get-rusage-data.c: Likewise.
+       * tests/test-getaddrinfo.c: Likewise.
+       * tests/test-getlogin.h: Likewise.
+       * tests/test-isatty.c: Likewise.
+       * tests/test-localename.c: Likewise.
+       * tests/test-mbrtowc-w32.c: Likewise.
+       * tests/test-nonblocking.c: Likewise.
+       * tests/test-nonblocking-pipe-main.c: Likewise.
+       * tests/test-nonblocking-socket-main.c: Likewise.
+       * tests/test-nonblocking-socket.h: Likewise.
+       * tests/test-pipe.c: Likewise.
+       * tests/test-pipe2.c: Likewise.
+       * tests/test-poll.c: Likewise.
+       * tests/test-pthread_sigmask1.c: Likewise.
+       * tests/test-select.h: Likewise.
+       * tests/test-sethostname2.c: Likewise.
+       * tests/test-sigprocmask.c: Likewise.
+       * tests/test-spawn-pipe-child.c: Likewise.
+       * tests/test-stat-time.c: Likewise.
+       * tests/test-system-quote-main.c: Likewise.
+       * tests/test-utimens-common.h: Likewise.
+       * tests/test-wcrtomb-w32.c: Likewise.
+       * m4/csharpexec.m4 (gt_CSHARPEXEC): Likewise.
+       * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
+       * m4/javacomp.m4 (gt_JAVACOMP): Likewise.
+       * m4/javaexec.m4 (gt_JAVAEXEC): Likewise.
+       * m4/locale-ar.m4 (gt_LOCALE_AR): Likewise.
+       * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
+       * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
+       * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
+       * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
+       * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
+       * m4/nocrash.m4 (GL_NOCRASH): Likewise.
+       * m4/pathmax.m4 (gl_PATHMAX_SNIPPET): Likewise.
+       * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Likewise.
+       * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
+       * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Likewise.
+       * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
+
 2018-05-02  Bruno Haible  <bruno@clisp.org>
 
        localename: Fix test failures on mingw.
index 2283feed668911a877aca1c7dcc47649d13fde26..f615366691afc09a77488396ea43c8f114ba9e75 100644 (file)
@@ -69,7 +69,7 @@ accept4 (int sockfd, struct sockaddr *addr, socklen_t *addrlen, int flags)
     return -1;
 
 #if SOCK_CLOEXEC
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
 /* Native Windows API.  */
   if (flags & SOCK_CLOEXEC)
     {
index 898f0d109ad610610e4b69709af7057e4764f9ed..7831b3f19c345d20a8a92d870453ef1d39875741 100644 (file)
@@ -95,7 +95,7 @@
 static void
 alloc_failed (void)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   /* Avoid errno problem without using the malloc or realloc modules; see:
      https://lists.gnu.org/r/bug-gnulib/2016-08/msg00025.html  */
   errno = ENOMEM;
index d1caa2d68ee081bcec59b10a8023b6714a48ca4d..2164b9a5cefba8e7c9abf9e8e9d1dd96f53d0cef 100644 (file)
@@ -37,7 +37,7 @@
 #endif
 
 /* Separator in PATH like lists of pathnames.  */
-#if ((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) || defined __EMX__ || defined __DJGPP__
+#if (defined _WIN32 && !defined __CYGWIN__) || defined __EMX__ || defined __DJGPP__
   /* Native Windows, OS/2, DOS */
 # define PATH_SEPARATOR ';'
 #else
index e1f12ca81575b91cbf7c6538a70aeff9131d00ba..dcc2602b7e2d7ca4884482fc7787bd16184d8eed 100644 (file)
@@ -30,7 +30,7 @@
 #include <string.h>
 #include <unistd.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # define WIN32_LEAN_AND_MEAN  /* avoid including junk */
 # include <windows.h>
 #endif
@@ -563,7 +563,7 @@ cleanup_temp_dir (struct temp_dir *dir)
 }
 
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 
 /* On Windows, opening a file with _O_TEMPORARY has the effect of passing
    the FILE_FLAG_DELETE_ON_CLOSE flag to CreateFile(), which has the effect
@@ -632,7 +632,7 @@ open_temp (const char *file_name, int flags, mode_t mode)
 
   block_fatal_signals ();
   /* Note: 'open' here is actually open() or open_safer().  */
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   /* Use _O_TEMPORARY when possible, to increase the chances that the
      temporary file is removed when the process crashes.  */
   if (supports_delete_on_close ())
@@ -658,7 +658,7 @@ fopen_temp (const char *file_name, const char *mode)
 
   block_fatal_signals ();
   /* Note: 'fopen' here is actually fopen() or fopen_safer().  */
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   /* Use _O_TEMPORARY when possible, to increase the chances that the
      temporary file is removed when the process crashes.  */
   if (supports_delete_on_close ())
index 3f9d67a3916b631debd77506be0c72af6321200a..54b81d0182db20b3bc065caca57e5ff557927645 100644 (file)
@@ -43,7 +43,7 @@
 #undef CLASSPATHVAR
 
 /* Handling of clix' PATH variable is just like Java CLASSPATH.  */
-#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__
+#if defined _WIN32 || defined __CYGWIN__
   /* Native Windows, Cygwin */
   #define CLASSPATHVAR "PATH"
 #elif defined __APPLE__ && defined __MACH__
index ccc6879e671df5da7aa901f3fbbc8bfddb95b679..6f409aa9630606259b5c50513632bf805ecb5fdb 100644 (file)
@@ -27,7 +27,7 @@
 char *
 rpl_ctime (const time_t *tp)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   /* Rectify the value of the environment variable TZ.
      There are four possible kinds of such values:
        - Traditional US time zone names, e.g. "PST8PDT".  Syntax: see
index 66486d5209d0a8ff93a7018fb583b1580f71c7d5..fef3b6daa1ffe446259dcb442c349735dbeaca57 100644 (file)
@@ -20,9 +20,8 @@
 #ifndef _DOSNAME_H
 #define _DOSNAME_H
 
-#if (defined _WIN32 || defined __WIN32__ ||     \
-     defined __MSDOS__ || defined __CYGWIN__ || \
-     defined __EMX__ || defined __DJGPP__)
+#if (defined _WIN32 || defined __CYGWIN__ \
+     || defined __EMX__ || defined __MSDOS__ || defined __DJGPP__)
    /* This internal macro assumes ASCII, but all hosts that support drive
       letters use ASCII.  */
 # define _IS_DRIVE_LETTER(C) (((unsigned int) (C) | ('a' - 'A')) - 'a'  \
index c8b49b25e474ad83e84850f2375681379ab1ccd3..c7d176728d4ba110fdc9cbf983f6df433d09e116 100644 (file)
@@ -29,7 +29,7 @@
 
 # undef dup2
 
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
 
 /* Get declarations of the native Windows API functions.  */
 #  define WIN32_LEAN_AND_MEAN
index 04c326c3234bfc7d1f05fb8f2e3f0ce0706ae2d3..b06d03d4fa9e4eb807136d010baeac7945e7a94d 100644 (file)
@@ -30,7 +30,7 @@
 
 
 /* On native Windows platforms, many macros are not defined.  */
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
 
 /* These are the same values as defined by MSVC 10, for interoperability.  */
 
        interoperability.  */
 #   define EOWNERDEAD      58
 #   define ENOTRECOVERABLE 59
-#  elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#  elif defined _WIN32 && ! defined __CYGWIN__
     /* We have a conflict here: pthreads-win32 defines these values
        differently than MSVC 10.  It's hairy to decide which one to use.  */
 #   if defined __MINGW32__ && !defined USE_WINDOWS_THREADS
index 81788c7b96e7e35b3b8815721b80867c2526156d..adc873391cb49e164297fd1d9f16ca0aedcf1e60 100644 (file)
@@ -93,7 +93,7 @@ extern void __error_at_line (int status, int errnum, const char *file_name,
 # include <fcntl.h>
 # include <unistd.h>
 
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
 /* Get declarations of the native Windows API functions.  */
 #  define WIN32_LEAN_AND_MEAN
 #  include <windows.h>
@@ -131,7 +131,7 @@ int strerror_r (int errnum, char *buf, size_t buflen);
 static int
 is_open (int fd)
 {
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
   /* On native Windows: The initial state of unassigned standard file
      descriptors is that they are open but point to an INVALID_HANDLE_VALUE.
      There is no fcntl, and the gnulib replacement fcntl does not support
index 4f512f5af5422b7c5401182e6176e7393c54e02e..de5d82b52d566d61e23be249975db441802d2f54 100644 (file)
@@ -29,7 +29,7 @@
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # include <io.h>
 #else
 # include "root-uid.h"
@@ -87,7 +87,7 @@ euidaccess (const char *file, int mode)
   return accessx (file, mode, ACC_SELF);
 #elif HAVE_EACCESS                      /* FreeBSD */
   return eaccess (file, mode);
-#elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__  /* mingw */
+#elif defined _WIN32 && ! defined __CYGWIN__  /* mingw */
   return _access (file, mode);
 #else              /* Mac OS X, NetBSD, OpenBSD, HP-UX, Solaris, Cygwin, BeOS */
 
index 065d83d65b9f9aabfa544d0881c6e7203c72baed..45326610d0753793c2d2f2a3937f123f96c4b11b 100644 (file)
@@ -35,7 +35,7 @@
 
 #define _(str) gettext (str)
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 
 /* Native Windows API.  */
 # include <process.h>
@@ -49,7 +49,7 @@
 #endif
 
 
-#if defined EINTR && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
+#if defined EINTR && (defined _WIN32 && ! defined __CYGWIN__)
 
 /* EINTR handling for close(), open().
    These functions can return -1/EINTR even though we don't have any
@@ -99,7 +99,7 @@ execute (const char *progname,
          bool slave_process, bool exit_on_error,
          int *termsigp)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 
   /* Native Windows API.  */
   int orig_stdin;
index b8cb271f55ca8cc450b5f9fdfd91b8e34226b8cd..be6583565b42dd10c10ed130254b09f207ef2f9b 100644 (file)
@@ -32,7 +32,7 @@
 #endif
 #undef fcntl
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 /* Get declarations of the native Windows API functions.  */
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
@@ -376,7 +376,7 @@ rpl_fcntl (int fd, int action, /* arg */...)
 #if !HAVE_FCNTL
     case F_GETFD:
       {
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
         HANDLE handle = (HANDLE) _get_osfhandle (fd);
         DWORD flags;
         if (handle == INVALID_HANDLE_VALUE
index 719a54d0f72590f6315cdafd948440b44faca5f5..a1e7d35c1b9cdeb11ca6758e4aeef8e5612980c2 100644 (file)
@@ -68,7 +68,7 @@
 
 /* Native Windows platforms declare open(), creat() in <io.h>.  */
 #if (@GNULIB_OPEN@ || defined GNULIB_POSIXCHECK) \
-    && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
+    && (defined _WIN32 && ! defined __CYGWIN__)
 # include <io.h>
 #endif
 
index a8127e87792c2427beca909bf18e039a01f268f0..a7ad7e7e0c04000540b7558a4d94adac228d0098 100644 (file)
@@ -28,7 +28,7 @@ extern "C" {
                         it may be concatenated to a directory pathname.
    IS_PATH_WITH_DIR(P)  tests whether P contains a directory specification.
  */
-#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
+#if defined _WIN32 || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
   /* Native Windows, Cygwin, OS/2, DOS */
 # define ISSLASH(C) ((C) == '/' || (C) == '\\')
 # define HAS_DEVICE(P) \
index f4a009fd7b9783761e6c2347e56b5fafc95751a0..7316418a9eedb5357fc8f5d5fd95ee9f4201ce45 100644 (file)
@@ -38,7 +38,7 @@
 const char *
 find_in_path (const char *progname)
 {
-#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
+#if defined _WIN32 || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
   /* Native Windows, Cygwin, OS/2, DOS */
   /* The searching rules with .COM, .EXE, .BAT, .CMD etc. suffixes are
      too complicated.  Leave it to the OS.  */
index 86c91a97cf2d51fee4557fce31fbef834cf5c51a..8ccb1cdfb1561288c0b8f5ed044b3649b7ca6984 100644 (file)
@@ -24,7 +24,7 @@
 #include <config.h>
 #include <sys/file.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 
 /* LockFileEx */
 # define WIN32_LEAN_AND_MEAN
index 409f54f211f3eba1e917f036e4d38918384b56e2..2c9a75d0b05965f6c9f4c35658e5d37b5cd0e189 100644 (file)
@@ -47,7 +47,7 @@ orig_fopen (const char *filename, const char *mode)
 FILE *
 rpl_fopen (const char *filename, const char *mode)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   if (strcmp (filename, "/dev/null") == 0)
     filename = "NUL";
 #endif
index 0d7de225d2a628ad9d3e69d3210eb9ae1b993ec1..4111c24af8649f1b0bbdc0d8c5d6b5193b4c0803 100644 (file)
@@ -47,7 +47,7 @@ FILE *
 rpl_freopen (const char *filename, const char *mode, FILE *stream)
 {
   FILE *result;
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   char const *null_device = "NUL";
   if (filename && strcmp (filename, "/dev/null") == 0)
     filename = null_device;
index c143d4613411c266e4916004be189a441c7371fd..41ee7618d22152aeb1acb0c7b6ad796ea00af724 100644 (file)
@@ -25,7 +25,7 @@
 #include <sys/stat.h>
 #undef __need_system_sys_stat_h
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # define WINDOWS_NATIVE
 #endif
 
index 4937ab76871edad56e3b147fce15b5cc41d25e72..efe43e166c2482faa779131f5463017571cf0b1c 100644 (file)
@@ -25,7 +25,7 @@
 #include <config.h>
 #include <unistd.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 
 /* FlushFileBuffers */
 # define WIN32_LEAN_AND_MEAN
index f7c96646f55b6c89299fd3b847fb7c6157477ca3..23301539f13b8a225239fc0a974c34ebb34893ab 100644 (file)
@@ -70,7 +70,7 @@
 #endif
 
 #ifdef GNULIB_GC_RANDOM
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
 #  include <windows.h>
 #  include <wincrypt.h>
 HCRYPTPROV g_hProv = 0;
@@ -87,7 +87,7 @@ Gc_rc
 gc_init (void)
 {
 #ifdef GNULIB_GC_RANDOM
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
   if (g_hProv)
     CryptReleaseContext (g_hProv, 0);
 
@@ -114,7 +114,7 @@ void
 gc_done (void)
 {
 #ifdef GNULIB_GC_RANDOM
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
   if (g_hProv)
     {
       CryptReleaseContext (g_hProv, 0);
@@ -133,7 +133,7 @@ gc_done (void)
 static Gc_rc
 randomize (int level, char *data, size_t datalen)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   if (!g_hProv)
     return GC_RANDOM_ERROR;
   CryptGenRandom (g_hProv, (DWORD) datalen, data);
index 0056b9ef85e2a499acf56d86c693914bf2d164c8..fbf50bffcfeeed3213d3d87c9163516d6bc687f6 100644 (file)
@@ -353,7 +353,7 @@ vma_iterate_callback (void *data, uintptr_t start, uintptr_t end,
 static uintptr_t
 get_rusage_data_via_iterator (void)
 {
-#  if ((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) || defined __BEOS__ || defined __HAIKU__
+#  if (defined _WIN32 && !defined __CYGWIN__) || defined __BEOS__ || defined __HAIKU__
   /* On native Windows, there is no sbrk() function.
      On Haiku, sbrk(0) always returns 0.  */
   static void *brk_value;
index 80a95dbfee2799a1d2616fdac7315c9dfa0dc6a2..756c31b7b1914214ee7b7d163b8adb2b1b62ee6d 100644 (file)
@@ -54,7 +54,7 @@
 # define PF_UNSPEC 0
 #endif
 
-#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+#if defined _WIN32 && !defined __CYGWIN__
 # define WINDOWS_NATIVE
 #endif
 
index 8ae887e53109de4d34d38b43b116486f8caa9b22..ec50af11493de3e0f04be30f77999a1d2b79e103 100644 (file)
@@ -50,7 +50,7 @@
 static void
 alloc_failed (void)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   /* Avoid errno problem without using the realloc module; see:
      https://lists.gnu.org/r/bug-gnulib/2016-08/msg00025.html  */
   errno = ENOMEM;
index c6c1136fc55173a3d73c9312c5ce7d616baf46ad..ac05bc483cce1e90cb4c169709e5031beeae7a70 100644 (file)
@@ -20,7 +20,7 @@
 /* Specification.  */
 #include <unistd.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 
 # include <stdio.h>
 
index 1427e786f13130dd9b2485b27f6cef263ea7c66e..cb8e58ceeea9f3271971300cde50e72a8a8576db 100644 (file)
@@ -20,7 +20,7 @@
 
 #include <config.h>
 
-#if !((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__)
+#if !(defined _WIN32 && !defined __CYGWIN__)
 /* Unix API.  */
 
 /* Specification.  */
index b97ed835a9287e76083ce2b2b3499e309811ad0a..ab9868b221d6b689fd33d4ddfee90f3010c283ff 100644 (file)
@@ -22,7 +22,7 @@
 /* Specification.  */
 #include <unistd.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
 #endif
@@ -30,7 +30,7 @@
 char *
 getlogin (void)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   static char login_name[1024];
   DWORD sz = sizeof (login_name);
 
index 812cd6b637eb751e8f6430730218171a644fa68f..afd8122e66c7c55f72df896176407b01df9a0813 100644 (file)
@@ -27,7 +27,7 @@
 
 #include "malloca.h"
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
 #else
@@ -41,7 +41,7 @@ int
 getlogin_r (char *name, size_t size)
 {
 #undef getlogin_r
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   /* Native Windows platform.  */
   DWORD sz;
 
index d0cbbeef8b941897145a91a881f06540e2bf63bb..18e9f5341abc65dd37e26f32680d81f44bff3787 100644 (file)
@@ -46,7 +46,7 @@
 /* When used standalone, flockfile and funlockfile might not be
    available.  */
 # if (!defined _POSIX_THREAD_SAFE_FUNCTIONS \
-      || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__))
+      || (defined _WIN32 && ! defined __CYGWIN__))
 #  define flockfile(fp) /* nop */
 #  define funlockfile(fp) /* nop */
 # endif
index 2a0156349314c55bce98b507f33f3da449a84b3f..9e79ed6691b778a6abacf62bc55323066ff56531 100644 (file)
@@ -23,7 +23,7 @@
 #include <unistd.h>
 
 /* This implementation is only for native Windows systems.  */
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
index 6b7f1cc3a3120160918d65b899581dfa58bf2ab1..a2113550aee775efb6f9bb9365ff5f2cc9ed1c57 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <stdio.h>
 
-#if !((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__)
+#if !(defined _WIN32 && !defined __CYGWIN__)
 
 # include <stdbool.h>
 
index 0142fd02f00c0e2f24c056f3b1beb80bb7a806cd..44c0a515369d2908550923b6ea9a6dbec58cb28e 100644 (file)
@@ -28,7 +28,7 @@
 /* Get uint64_t.  */
 #include <stdint.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
@@ -47,7 +47,7 @@ getrusage (int who, struct rusage *usage_p)
       /* Clear all unsupported members of 'struct rusage'.  */
       memset (usage_p, '\0', sizeof (struct rusage));
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
       if (who == RUSAGE_SELF)
         {
           /* Fill in the ru_utime and ru_stime members.  */
index db6fffca063585d9132e41a6adc58d5f298b7b68..ba0410b9d1503652fd0362c2df9e2c8ea0324d85 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <time.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # define WINDOWS_NATIVE
 # include <windows.h>
 #endif
index 29e3911f1a9e2704aab1948c4f91a2dd02aec650..61930e7149e7913948da6109c207e67907e1609d 100644 (file)
@@ -26,7 +26,7 @@
 #include <assert.h>
 #include <unistd.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # define WINDOWS32
 #endif
 
index ca3cec5b477556979bb2029aaf236d8554d53792..1e303cb79b080d4a82c5365229a72b4f8d4b5e5b 100644 (file)
@@ -52,7 +52,7 @@
 /* Get CHAR_BIT.  */
 #include <limits.h>
 /* On mingw, __USE_MINGW_ANSI_STDIO only works if <stdio.h> is also included */
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # include <stdio.h>
 #endif
 
index da4248c48864308634d7c446869cc1f7210b60f2..445a0ad08223a46d29978a840cba5c8895592c98 100644 (file)
@@ -23,7 +23,7 @@
 
 #include <errno.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 /* Windows platforms.  */
 
 /* Get GetFileType.  */
index ab69c50c052528d531b9107f0c4ee672f94ad3cb..b6f2eff0e82b893c6b4e9f40f39c6ba86137d61a 100644 (file)
@@ -357,7 +357,7 @@ execute_java_class (const char *class_name,
       }
   }
 
-#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__
+#if defined _WIN32 || defined __CYGWIN__
   /* Native Windows, Cygwin */
   {
     static bool jview_tested;
index 6f0ed0e2dfa9c6c3fcda322949ae82eb3f92cae9..bf0b344b7570d1455aae13e1c9dbc23483e51681 100644 (file)
@@ -25,7 +25,7 @@
 #include <sys/stat.h>
 
 #if !HAVE_LINK
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
 
 #  define WIN32_LEAN_AND_MEAN
 #  include <windows.h>
index 04eaf071d6f9aed88dc1da40acc59f46275a97dd..50a5d688bf674a13b874507b77af0e4ccf7a69f7 100644 (file)
@@ -32,7 +32,7 @@
 # define DARWIN7 /* Darwin 7 or newer, i.e. Mac OS X 10.3 or newer */
 #endif
 
-#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+#if defined _WIN32 && !defined __CYGWIN__
 # define WINDOWS_NATIVE
 # include <locale.h>
 #endif
@@ -88,7 +88,7 @@
 # define O_NOFOLLOW 0
 #endif
 
-#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
+#if defined _WIN32 || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
   /* Native Windows, Cygwin, OS/2, DOS */
 # define ISSLASH(C) ((C) == '/' || (C) == '\\')
 #endif
index f7a7fa5a738e54070e181f615f41bdd2f03a0e9b..694bd2206b0fed446072ae2d2f35b4ea0689ed3a 100644 (file)
@@ -61,7 +61,7 @@ extern char * getlocalename_l(int, locale_t);
 # endif
 #endif
 
-#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+#if defined _WIN32 && !defined __CYGWIN__
 # define WINDOWS_NATIVE
 # if !defined IN_LIBINTL
 #  include "glthread/lock.h"
index 7c333c5a587fdfe735fdb36476205cd036ba2c8b..a7c03692f7945a8be3ab57501dc1340aa0d00b53 100644 (file)
@@ -87,7 +87,7 @@ extern const char * gl_locale_name_environ (int category, const char *categoryna
    The result must not be freed; it is statically allocated.  */
 extern const char * gl_locale_name_default (void)
 #if !(HAVE_CFLOCALECOPYCURRENT || HAVE_CFPREFERENCESCOPYAPPVALUE \
-      || defined _WIN32 || defined __WIN32__ || defined __CYGWIN__)
+      || defined _WIN32 || defined __CYGWIN__)
   _GL_ATTRIBUTE_CONST
 #endif
   ;
index c94eeb0dade5cfe9e5ad09a0356d0558151b213f..fdacde61c4605459a34bb4d9ee45876e53f4628f 100644 (file)
@@ -30,7 +30,7 @@
 struct tm *
 rpl_localtime (const time_t *tp)
 {
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
   /* Rectify the value of the environment variable TZ.
      There are four possible kinds of such values:
        - Traditional US time zone names, e.g. "PST8PDT".  Syntax: see
index eb4b24e66fdb80941631b5fc5369f0716271a659..5d520ce77b6a82741af8d5bdd64ba4a6e7ea5284 100644 (file)
@@ -19,7 +19,7 @@
 /* Specification.  */
 #include <unistd.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 /* Windows platforms.  */
 /* Get GetFileType.  */
 # include <windows.h>
@@ -39,7 +39,7 @@
 off_t
 rpl_lseek (int fd, off_t offset, int whence)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   /* mingw lseek mistakenly succeeds on pipes, sockets, and terminals.  */
   HANDLE h = (HANDLE) _get_osfhandle (fd);
   if (h == INVALID_HANDLE_VALUE)
index 921cbf11cb6960f8159ace03b36eb5ec9ca30849..e23a5ad3184b02b47fa9502ca51ac4c82cbd738a 100644 (file)
@@ -54,7 +54,7 @@ mbsinit (const mbstate_t *ps)
 int
 mbsinit (const mbstate_t *ps)
 {
-# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+# if defined _WIN32 && !defined __CYGWIN__
   /* Native Windows.  */
 #  ifdef __MINGW32__
   /* On mingw, 'mbstate_t' is defined as 'int'.  */
index e99395470a25aa1264a2b2b52f57b000b213df22..37d5a0f436272632d1f1e7cf9fe24d37659228d9 100644 (file)
@@ -38,7 +38,7 @@
    Additionally, it declares _mkdir (and depending on compile flags, an
    alias mkdir), only in the nonstandard includes <direct.h> and <io.h>,
    which are included in the <sys/stat.h> override.  */
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # define mkdir(name,mode) _mkdir (name)
 # define maybe_unused _GL_UNUSED
 #else
index 853b09e0cea5b8bfea308e0045bd55a63fac0bd1..5cc7c22e8f11d38ad4396dc236e5c149e1649865 100644 (file)
@@ -25,7 +25,7 @@
    This file defines wrappers that turn such an invalid parameter notification
    into an error code.  */
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 
 /* Get original declaration of _get_osfhandle.  */
 # include <io.h>
index 8c3be40221aaca68e719dc89bb0fc037204faa90..2cc390911862748436a914e95d470dc5c317c467 100644 (file)
@@ -86,7 +86,7 @@ nanosleep (const struct timespec *requested_delay,
   }
 }
 
-#elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#elif defined _WIN32 && ! defined __CYGWIN__
 /* Native Windows platforms.  */
 
 # define WIN32_LEAN_AND_MEAN
index d98f03462351c532b63d12d9050dea6c6ffb6a77..90b26a2498dedacf7e4f5eeb258e448d56fb9f60 100644 (file)
@@ -22,7 +22,7 @@
 
 #include <locale.h>
 #include <string.h>
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # define WIN32_LEAN_AND_MEAN  /* avoid including junk */
 # include <windows.h>
 # include <stdio.h>
@@ -65,7 +65,7 @@ ctype_codeset (void)
         }
     }
 
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
   /* If setlocale is successful, it returns the number of the
      codepage, as a string.  Otherwise, fall back on Windows API
      GetACP, which returns the locale's codepage as a number (although
index 5d5fefadebfe50bbe1a65268140ec321fad0a0f5..a325fadcc614dfc7d51ab15feece3b433d34a121 100644 (file)
@@ -21,7 +21,7 @@
 
 #include <errno.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 /* Native Windows API.  */
 
 # include <sys/ioctl.h>
index 5050635a33f949685eb2555233225f89d4b31cef..41fc9ab2097b4616bf211d739988aa3c03139608 100644 (file)
@@ -50,7 +50,7 @@
 # include <sys/sysctl.h>
 #endif
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
 #endif
@@ -176,7 +176,7 @@ num_processors_via_affinity_mask (void)
   }
 #endif
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   { /* This works on native Windows platforms.  */
     DWORD_PTR process_mask;
     DWORD_PTR system_mask;
@@ -318,7 +318,7 @@ num_processors_ignoring_omp (enum nproc_query query)
   }
 #endif
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   { /* This works on native Windows platforms.  */
     SYSTEM_INFO system_info;
     GetSystemInfo (&system_info);
index b344f13a92ac64cfcb3e9c4af3b316d4ae1f4456..792e258ba0b09199346fc053356c6cf3e3b6d73a 100644 (file)
@@ -86,7 +86,7 @@ open (const char *filename, int flags, ...)
   flags &= ~O_NONBLOCK;
 #endif
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   if (strcmp (filename, "/dev/null") == 0)
     filename = "NUL";
 #endif
index f565a296ccddb4582937f991fde157466856024f..94e09ca01153de36c8669d1ef2ac61010e516aa1 100644 (file)
@@ -32,7 +32,7 @@ rpl_openpty (int *amaster, int *aslave, char *name,
                   (struct winsize *) winp);
 }
 
-#elif (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ /* mingw */
+#elif defined _WIN32 && !defined __CYGWIN__ /* mingw */
 
 # include <errno.h>
 
index 521f4eb17ec23d710073137aa18cac506770666d..661a71420d08676bca1c08d45e27f7296341794e 100644 (file)
@@ -65,7 +65,7 @@
 #  define PATH_MAX 1024
 # endif
 
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
 /* The page "Naming Files, Paths, and Namespaces" on msdn.microsoft.com,
    section "Maximum Path Length Limitation",
    <https://msdn.microsoft.com/en-us/library/aa365247.aspx#maxpath>
index a33b817e949796859035b1681228e5d714666b60..4f1c7be9e89b98c47fae2b2b182d108607928db1 100644 (file)
@@ -26,7 +26,7 @@
 #include <stdint.h>
 #include <stdlib.h>
 #include <unistd.h>
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # include <windows.h>
 #else
 # include <signal.h>
index 7d59c362f62e487f6b191a42952d74b8980156f5..85f7ea50499bd8de8ea24cbc7c89d80874a47f8e 100644 (file)
@@ -26,7 +26,7 @@
 #include <stdint.h>
 #include <stdlib.h>
 #include <unistd.h>
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # include <windows.h>
 #else
 # include <signal.h>
@@ -66,7 +66,7 @@ struct pipe_filter_gi
   volatile bool reader_terminated;
   volatile int reader_errno;
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   CRITICAL_SECTION lock; /* protects the volatile fields */
   HANDLE reader_thread_handle;
 #else
@@ -95,7 +95,7 @@ static void filter_cleanup (struct pipe_filter_gi *filter,
                             bool finish_reading);
 
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 /* Native Windows API.  */
 
 static unsigned int WINAPI
@@ -221,7 +221,7 @@ filter_cleanup (struct pipe_filter_gi *filter, bool finish_reading)
 static int
 filter_init (struct pipe_filter_gi *filter)
 {
-#if !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
+#if !(defined _WIN32 && ! defined __CYGWIN__)
   /* When we write to the child process and it has just terminated,
      we don't want to die from a SIGPIPE signal.  So set the SIGPIPE
      handler to SIG_IGN, and handle EPIPE error codes in write().  */
index 7358f276512b3ea48e35f3dce9d3060012a8ecb6..ab8cb90ab117a11930ef1672eadec36853e9bedd 100644 (file)
@@ -25,7 +25,7 @@
 #include <stdint.h>
 #include <stdlib.h>
 #include <unistd.h>
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # include <windows.h>
 #elif defined __KLIBC__
 # define INCL_DOS
@@ -162,8 +162,7 @@ WaitForMultipleObjects (DWORD nCount, const HANDLE *pHandles, BOOL bWaitAll,
 
 #include "pipe-filter-aux.h"
 
-#if (((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \
-     || defined __KLIBC__)
+#if (defined _WIN32 && ! defined __CYGWIN__) || defined __KLIBC__
 
 struct locals
 {
@@ -265,8 +264,7 @@ pipe_filter_ii_execute (const char *progname,
 {
   pid_t child;
   int fd[2];
-#if !(((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \
-      || defined __KLIBC__)
+#if !((defined _WIN32 && ! defined __CYGWIN__) || defined __KLIBC__)
   struct sigaction orig_sigpipe_action;
 #endif
 
@@ -277,8 +275,7 @@ pipe_filter_ii_execute (const char *progname,
   if (child == -1)
     return -1;
 
-#if (((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \
-     || defined __KLIBC__)
+#if (defined _WIN32 && ! defined __CYGWIN__) || defined __KLIBC__
   /* Native Windows API.  */
   /* Pipes have a non-blocking mode, see function SetNamedPipeHandleState and
      the article "Named Pipe Type, Read, and Wait Modes", but Microsoft's
@@ -586,8 +583,7 @@ pipe_filter_ii_execute (const char *progname,
   {
     int saved_errno = errno;
     close (fd[1]);
-#if !(((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \
-      || defined __KLIBC__)
+#if !((defined _WIN32 && ! defined __CYGWIN__) || defined __KLIBC__)
     if (sigaction (SIGPIPE, &orig_sigpipe_action, NULL) < 0)
       abort ();
 #endif
index 505092f5fd86c5d1ebf0ae3c957fd0dd7e714221..6a5ec35a514e3324f3ddf5becdddf3f25c407de7 100644 (file)
@@ -19,7 +19,7 @@
 /* Specification.  */
 #include <unistd.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 /* Native Windows API.  */
 
 /* Get _pipe().  */
index 6b1dd1ffd44cefa03db0d154c04c500781386ae3..40b9940a1be6371821288de7ea80888aa257b59a 100644 (file)
@@ -29,7 +29,7 @@
 # include "nonblocking.h"
 #endif
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 /* Native Windows API.  */
 
 # include <io.h>
@@ -73,7 +73,7 @@ pipe2 (int fd[2], int flags)
       return -1;
     }
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 /* Native Windows API.  */
 
   if (_pipe (fd, 4096, flags & ~O_NONBLOCK) < 0)
@@ -152,8 +152,7 @@ pipe2 (int fd[2], int flags)
 
 #endif
 
-#if GNULIB_defined_O_NONBLOCK || \
-  !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
+#if GNULIB_defined_O_NONBLOCK || !(defined _WIN32 && ! defined __CYGWIN__)
  fail:
   {
     int saved_errno = errno;
index da3d8911b70f9f0e3d03ab955ed34ecfda27fc6c..26f7f1202a9c353bd119a5b9fcb1f73561a69ca5 100644 (file)
@@ -34,7 +34,7 @@
 #include <errno.h>
 #include <limits.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # define WINDOWS_NATIVE
 # include <winsock2.h>
 # include <windows.h>
index cecc434065eec532466b03bc960dcf79ca652efa..cf78d5fa71929de2c2c1f420ca3ff31f79aa2588 100644 (file)
@@ -21,7 +21,7 @@
 /* Specification.  */
 #include <stdio.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 /* Native Windows API.  */
 
 # include <string.h>
index 7683ea602c45857071049c855b23fdcb3fc21acb..a9631d8eeef8760d3c94c53eeb54df456347b155 100644 (file)
@@ -54,7 +54,7 @@ posix_openpt (int flags)
 
   master = open ("/dev/ptc", flags);
 
-#elif (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__ /* mingw */
+#elif defined _WIN32 && !defined __CYGWIN__ /* mingw */
 
   /* Mingw lacks pseudo-terminals altogether.  */
   master = -1;
index 7400ff4c1cccaf1a5efbf7fd6d227bf4239a2b87..5ce58246209d4dc20e8faacb175b6ecfe6137729 100644 (file)
@@ -419,7 +419,7 @@ PRINTF_PARSE (const CHAR_T *format, DIRECTIVES *d, arguments *a)
                       cp++;
                     }
 #endif
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
                   /* On native Windows, PRIdMAX is defined as "I64d".
                      We cannot change it to "lld" because PRIdMAX must also
                      be understood by the system's printf routines.  */
index f7673299aefd86b42a6912739fe3c6b971c45a59..0e52a14be8eedc7604638d134c4d8fa9cd2c81e9 100644 (file)
@@ -35,7 +35,7 @@
 # include <mach-o/dyld.h>
 #endif
 
-#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+#if defined _WIN32 && !defined __CYGWIN__
 # define WINDOWS_NATIVE
 #endif
 
@@ -78,7 +78,7 @@ extern char * canonicalize_file_name (const char *name);
    ISSLASH(C)           tests whether C is a directory separator character.
    IS_PATH_WITH_DIR(P)  tests whether P contains a directory specification.
  */
-#if ((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) || defined __EMX__ || defined __DJGPP__
+#if (defined _WIN32 && !defined __CYGWIN__) || defined __EMX__ || defined __DJGPP__
   /* Native Windows, OS/2, DOS */
 # define ISSLASH(C) ((C) == '/' || (C) == '\\')
 # define HAS_DEVICE(P) \
index 556d5f82302fd17132631bd8781e60b25ae631fb..801e372c329b6997d4e65a1903c19ca35e8bb3d9 100644 (file)
@@ -34,7 +34,7 @@
 #include <string.h>
 #include <unistd.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
 #endif
@@ -153,7 +153,7 @@ putenv (char *string)
             *ep = string;
             break;
           }
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
       if (putenv_result == 0)
         {
           /* _putenv propagated "NAME= " into the subprocess environment;
index 926cd75c987595d28c0f227f725ece0e3c6e4b24..17d9d7456699e173667f80ef110a062795c66b26 100644 (file)
@@ -20,7 +20,7 @@
 /* Specification.  */
 #include <unistd.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 
 # include <errno.h>
 # include <io.h>
index 4bdb9a6545af7fa659e625bb745a8a0cfe75506f..81133cae4090c288f754c5fc486ff164ab9ac07d 100644 (file)
@@ -42,7 +42,7 @@
 # include "xalloc.h"
 #endif
 
-#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+#if defined _WIN32 && !defined __CYGWIN__
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
 #endif
@@ -77,7 +77,7 @@
    ISSLASH(C)           tests whether C is a directory separator character.
    IS_PATH_WITH_DIR(P)  tests whether P contains a directory specification.
  */
-#if ((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) || defined __EMX__ || defined __DJGPP__
+#if (defined _WIN32 && !defined __CYGWIN__) || defined __EMX__ || defined __DJGPP__
   /* Native Windows, OS/2, DOS */
 # define ISSLASH(C) ((C) == '/' || (C) == '\\')
 # define HAS_DEVICE(P) \
@@ -99,7 +99,7 @@
    platforms, see below.  Therefore we enable it by default only on native
    Windows platforms.  */
 #ifndef ENABLE_COSTLY_RELOCATABLE
-# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+# if defined _WIN32 && !defined __CYGWIN__
 #  define ENABLE_COSTLY_RELOCATABLE 1
 # else
 #  define ENABLE_COSTLY_RELOCATABLE 0
@@ -256,7 +256,7 @@ compute_curr_prefix (const char *orig_installprefix,
             /* Do case-insensitive comparison if the file system is always or
                often case-insensitive.  It's better to accept the comparison
                if the difference is only in case, rather than to fail.  */
-#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
+#if defined _WIN32 || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
             /* Native Windows, Cygwin, OS/2, DOS - case insignificant file system */
             if ((*rpi >= 'a' && *rpi <= 'z' ? *rpi - 'a' + 'A' : *rpi)
                 != (*cpi >= 'a' && *cpi <= 'z' ? *cpi - 'a' + 'A' : *cpi))
@@ -310,7 +310,7 @@ compute_curr_prefix (const char *orig_installprefix,
 /* Full pathname of shared library, or NULL.  */
 static char *shared_library_fullname;
 
-#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+#if defined _WIN32 && !defined __CYGWIN__
 /* Native Windows only.
    On Cygwin, it is better to use the Cygwin provided /proc interface, than
    to use native Windows API and cygwin_conv_to_posix_path, because it
@@ -445,8 +445,7 @@ find_shared_library_fullname ()
 static char *
 get_shared_library_fullname ()
 {
-#if (!((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) \
-     && !defined __EMX__)
+#if !(defined _WIN32 && !defined __CYGWIN__) && !defined __EMX__
   static bool tried_find_shared_library_fullname;
   if (!tried_find_shared_library_fullname)
     {
index 53fa5fc409b369ad61efb55054ca52b0f2370783..0b457aa3135228de149ade732cea2fa36578908b 100644 (file)
@@ -23,7 +23,7 @@
 
 #undef rename
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 /* The mingw rename has problems with trailing slashes; it also
    requires use of native Windows calls to allow atomic renames over
    existing files.  */
index ad8f7d72eff1d4a5747ea468630d0f2ddd0576a3..68377954e0b6d20a803336f6faddda4c5605d3ab 100644 (file)
@@ -26,7 +26,7 @@
      && (a).st_ino[1] == (b).st_ino[1] \
      && (a).st_ino[2] == (b).st_ino[2] \
      && (a).st_dev == (b).st_dev)
-# elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# elif defined _WIN32 && ! defined __CYGWIN__
    /* Native Windows.  */
 #  if _GL_WINDOWS_STAT_INODES
     /* stat() and fstat() set st_dev and st_ino to 0 if information about
index 3f9c962abb05fe9a7ce7b9bbfe61298342fc4158..54e5a17f5bdeb2cf76661a934c14fc5e75ea082c 100644 (file)
@@ -38,7 +38,7 @@ secure_getenv (char const *name)
   if (geteuid () != getuid () || getegid () != getgid ())
     return NULL;
   return getenv (name);
-#elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__ /* native Windows */
+#elif defined _WIN32 && ! defined __CYGWIN__ /* native Windows */
   /* On native Windows, there is no such concept as setuid or setgid binaries.
      - Programs launched as system services have high privileges, but they don't
        inherit environment variables from a user.
index e50c06e1137911aae456e941cbd25f1a45720fa0..3659cb5694e64033e7751c531a9d4f749c5a4648 100644 (file)
@@ -22,7 +22,7 @@
 #include <alloca.h>
 #include <assert.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 /* Native Windows.  */
 
 #include <sys/types.h>
index f04fa11198b3f52f7ff881f48c49eb5a7f9a500a..618311530544b9da5380a9866be35a305cf8d12d 100644 (file)
@@ -19,7 +19,7 @@
 
 #include <config.h>
 
-#if !((defined _WIN32 || defined __WIN32__) || defined __CYGWIN__)
+#if !(defined _WIN32 || defined __CYGWIN__)
 /* Unix API.  */
 
 /* Specification.  */
index 5ac7f7230840d33557639f5ec25b79ca8312e496..1ac3f4d66ed5766859a3ae230cb9cce9e5ba4fd3 100644 (file)
@@ -72,7 +72,7 @@ category_to_name (int category)
   return retval;
 }
 
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
 
 /* The native Windows setlocale() function expects locale names of the form
    "German" or "German_Germany" or "DEU", but not "de" or "de_DE".  We need
@@ -635,7 +635,7 @@ 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 __WIN32__) && !defined __CYGWIN__
+#if defined _WIN32 && !defined __CYGWIN__
   if (locale != NULL && strcmp (locale, "POSIX") == 0)
     locale = "C";
 #endif
@@ -852,7 +852,7 @@ rpl_setlocale (int category, const char *locale)
 
           if (setlocale_unixlike (LC_ALL, base_name) == NULL)
             goto fail;
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
           /* On native Windows, setlocale(LC_ALL,...) may succeed but set the
              LC_CTYPE category to an invalid value ("C") when it does not
              support the specified encoding.  Report a failure instead.  */
@@ -903,7 +903,7 @@ rpl_setlocale (int category, const char *locale)
     }
   else
     {
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
       if (category == LC_ALL && locale != NULL && strchr (locale, '.') != NULL)
         {
           char *saved_locale;
index da46b1c57be4ded9bc66b4d70d5b0ef8904863ba..7e4af5fe55d80f227968b3a13e09ce8f8d15ae87 100644 (file)
@@ -67,7 +67,7 @@
 /* On native Windows, as of 2008, the signal SIGABRT_COMPAT is an alias
    for the signal SIGABRT.  Only one signal handler is stored for both
    SIGABRT and SIGABRT_COMPAT.  SIGABRT_COMPAT is not a signal of its own.  */
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # undef SIGABRT_COMPAT
 # define SIGABRT_COMPAT 6
 #endif
index 0a8cd532837b055bbc249ab7fbd2304bffc17609..7a49bcd115967831947075275db8926c0e5c94b3 100644 (file)
@@ -50,7 +50,7 @@
 /* On native Windows, as of 2008, the signal SIGABRT_COMPAT is an alias
    for the signal SIGABRT.  Only one signal handler is stored for both
    SIGABRT and SIGABRT_COMPAT.  SIGABRT_COMPAT is not a signal of its own.  */
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # undef SIGABRT_COMPAT
 # define SIGABRT_COMPAT 6
 #endif
index 0b586975876a848837715d02fb9d08145211de5c..8b7539090acc01f4dbb6a837910b5505925fad1b 100644 (file)
@@ -24,7 +24,7 @@
 
 #include "verify.h"
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 
 # define WIN32_LEAN_AND_MEAN  /* avoid including junk */
 # include <windows.h>
index 8a5956db32c3a740c23588248a7bd69eb134f5f2..716c54a6c7ca3df0f56a878dabf589c8254ad6b9 100644 (file)
@@ -40,8 +40,7 @@
 
 #define _(str) gettext (str)
 
-#if (((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \
-     || defined __KLIBC__)
+#if (defined _WIN32 && ! defined __CYGWIN__) || defined __KLIBC__
 
 /* Native Windows API.  */
 # include <process.h>
@@ -74,7 +73,7 @@ nonintr_close (int fd)
 }
 #define close nonintr_close
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 static int
 nonintr_open (const char *pathname, int oflag, mode_t mode)
 {
@@ -115,8 +114,7 @@ create_pipe (const char *progname,
              bool slave_process, bool exit_on_error,
              int fd[2])
 {
-#if (((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \
-     || defined __KLIBC__)
+#if (defined _WIN32 && ! defined __CYGWIN__) || defined __KLIBC__
 
   /* Native Windows API.
      This uses _pipe(), dup2(), and spawnv().  It could also be implemented
index 755356c3f418ad606532a46442ca9427c7d381a4..52576d00b8edb686411b4e8cdb786b9311004467 100644 (file)
@@ -130,7 +130,7 @@ extern pid_t create_pipe_bidi (const char *progname,
                                int fd[2]);
 
 /* The name of the "always silent" device.  */
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 /* Native Windows API.  */
 # define DEV_NULL "NUL"
 #else
index ab77dfe5e323f09ef665a82a7ce72883faaec157..40f89d2db62a52e0d4acbbebda830c3baf6649a3 100644 (file)
@@ -89,7 +89,7 @@
 #define SPAWN_ERROR     127
 
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 
 /* Native Windows API.  */
 int
index 104f53766829c5aa3709d9b6bfa7657799813bae..8e787bd3b2d161db8bd68cb6694735b7f3d493c8 100644 (file)
@@ -168,7 +168,7 @@ get_stat_birthtime (struct stat const *st _GL_UNUSED)
 #elif defined HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC
   t.tv_sec = st->st_birthtime;
   t.tv_nsec = st->st_birthtimensec;
-#elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#elif defined _WIN32 && ! defined __CYGWIN__
   /* Native Windows platforms (but not Cygwin) put the "file creation
      time" in st_ctime (!).  See
      <https://msdn.microsoft.com/en-us/library/14h5k7ff(VS.80).aspx>.  */
index 5d76a462e19d6d80f8aa3592aa6e1a14cafc8f28..802b38a8efb9878e318083f596e356f0eef7d30d 100644 (file)
@@ -18,7 +18,7 @@
 
 #include <config.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 
 /* Ensure that <windows.h> defines FILE_ID_INFO.  */
 #undef _WIN32_WINNT
index 1c5b62e2ea563bf850dcc824c4d291c13e17a80e..18c0caa19d14da1e21b79d25d5fb84f3bda8171a 100644 (file)
@@ -27,7 +27,7 @@
 #include <sys/stat.h>
 #undef __need_system_sys_stat_h
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # define WINDOWS_NATIVE
 #endif
 
index 05c5752a24367b92408d768a01e4d0a887e5f2a5..7a0ac4d50b70c5ad3d3b63d7f3274ba5d6df43a3 100644 (file)
 #  define _flag __flag
 # endif
 
-#elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__  /* newer Windows with MSVC */
+#elif defined _WIN32 && ! defined __CYGWIN__  /* newer Windows with MSVC */
 
 /* <stdio.h> does not define the innards of FILE any more.  */
 # define WINDOWS_OPAQUE_FILE
index 57c44ddb322e5c93a604134003596c6b589a099b..ed7f843bf0124fadf145ac3688434e71887fe513 100644 (file)
@@ -29,7 +29,7 @@
    read() function is at the basis of the function which fills the buffer of
    a FILE stream.  */
 
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
 
 #  include <errno.h>
 #  include <io.h>
index 5bd8d6341af7f35ecb3eec99f7f80b0a2263dcfa..e01a780a778943bfa8ee7be1416deff0de022930 100644 (file)
@@ -30,7 +30,7 @@
    error EINVAL.  This write() function is at the basis of the function
    which flushes the buffer of a FILE stream.  */
 
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
 
 #  include <errno.h>
 #  include <signal.h>
index 803a57a77178996838eef185b40662a6fadadd85..53a42e6a11bfdb3cb83ac7ec4edc4181b1607bc6 100644 (file)
    it before we  #define perror rpl_perror.  */
 /* But in any case avoid namespace pollution on glibc systems.  */
 #if (@GNULIB_PERROR@ || defined GNULIB_POSIXCHECK) \
-    && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \
+    && (defined _WIN32 && ! defined __CYGWIN__) \
     && ! defined __GLIBC__
 # include <stdlib.h>
 #endif
    it before we  #define rename rpl_rename.  */
 /* But in any case avoid namespace pollution on glibc systems.  */
 #if (@GNULIB_REMOVE@ || @GNULIB_RENAME@ || defined GNULIB_POSIXCHECK) \
-    && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \
+    && (defined _WIN32 && ! defined __CYGWIN__) \
     && ! defined __GLIBC__
 # include <io.h>
 #endif
index c8a5d0d0c61179b77c882e3be6f33799fa5e228a..3bf35bf6b0feffab05539047785b1ec9e891f5d5 100644 (file)
@@ -54,7 +54,7 @@
 #endif
 
 /* Native Windows platforms declare mktemp() in <io.h>.  */
-#if 0 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
+#if 0 && (defined _WIN32 && ! defined __CYGWIN__)
 # include <io.h>
 #endif
 
@@ -90,7 +90,7 @@ struct random_data
 # endif
 #endif
 
-#if (@GNULIB_MKSTEMP@ || @GNULIB_MKSTEMPS@ || @GNULIB_GETSUBOPT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ && !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
+#if (@GNULIB_MKSTEMP@ || @GNULIB_MKSTEMPS@ || @GNULIB_GETSUBOPT@ || defined GNULIB_POSIXCHECK) && ! defined __GLIBC__ && !(defined _WIN32 && ! defined __CYGWIN__)
 /* On Mac OS X 10.3, only <unistd.h> declares mkstemp.  */
 /* On Mac OS X 10.5, only <unistd.h> declares mkstemps.  */
 /* On Cygwin 1.7.1, only <unistd.h> declares getsubopt.  */
index c556c26737a4864529511fd2f5d97b327f7116d9..7a11be1cafa3239e34749ef79dfecaf5073b9d01 100644 (file)
@@ -61,7 +61,7 @@ int __xpg_strerror_r (int errnum, char *buf, size_t buflen);
 
 # define USE_SYSTEM_STRERROR 1
 
-# if defined __NetBSD__ || defined __hpux || ((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) || defined __sgi || (defined __sun && !defined _LP64) || defined __CYGWIN__
+# if defined __NetBSD__ || defined __hpux || (defined _WIN32 && !defined __CYGWIN__) || defined __sgi || (defined __sun && !defined _LP64) || defined __CYGWIN__
 
 /* No locking needed.  */
 
@@ -258,7 +258,7 @@ strerror_r (int errnum, char *buf, size_t buflen)
     /* Try to do what strerror (errnum) does, but without clobbering the
        buffer used by strerror().  */
 
-# if defined __NetBSD__ || defined __hpux || ((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__) || defined __CYGWIN__ /* NetBSD, HP-UX, native Windows, Cygwin */
+# if defined __NetBSD__ || defined __hpux || (defined _WIN32 && !defined __CYGWIN__) || defined __CYGWIN__ /* NetBSD, HP-UX, native Windows, Cygwin */
 
     /* NetBSD:         sys_nerr, sys_errlist are declared through _NETBSD_SOURCE
                        and <errno.h> above.
@@ -335,7 +335,7 @@ strerror_r (int errnum, char *buf, size_t buflen)
 
 #endif
 
-#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+#if defined _WIN32 && !defined __CYGWIN__
     /* MSVC 14 defines names for many error codes in the range 100..140,
        but _sys_errlist contains strings only for the error codes
        < _sys_nerr = 43.  */
index 47f5d9540b817a8e004d35b644491172a7d4c095..43614a5f8cf2036b95278cfd295b514f73ac0efc 100644 (file)
@@ -27,7 +27,7 @@
 size_t
 rpl_strftime (char *buf, size_t bufsize, const char *format, const struct tm *tp)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   /* Rectify the value of the environment variable TZ.
      There are four possible kinds of such values:
        - Traditional US time zone names, e.g. "PST8PDT".  Syntax: see
index 140867fc824eb42c409e139407d7be734daa239d..b22c6e185e7acfdd3de1ed5ba6be59e4b31708ae 100644 (file)
 /* Before doing "#define mkdir rpl_mkdir" below, we need to include all
    headers that may declare mkdir().  Native Windows platforms declare mkdir
    in <io.h> and/or <direct.h>, not in <unistd.h>.  */
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # include <io.h>     /* mingw32, mingw64 */
 # include <direct.h> /* mingw64, MSVC 9 */
 #endif
 
 /* Native Windows platforms declare umask() in <io.h>.  */
-#if 0 && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
+#if 0 && (defined _WIN32 && ! defined __CYGWIN__)
 # include <io.h>
 #endif
 
@@ -576,7 +576,7 @@ _GL_CXXALIAS_RPL (mkdir, int, (char const *name, mode_t mode));
    Additionally, it declares _mkdir (and depending on compile flags, an
    alias mkdir), only in the nonstandard includes <direct.h> and <io.h>,
    which are included above.  */
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
 
 #  if !GNULIB_defined_rpl_mkdir
 static int
index a002c401b636174937067857b740e54f8f4d6bed..0f75f4e107a9578f27fa5791cd9c132792184b0a 100644 (file)
@@ -86,8 +86,7 @@ typedef unsigned long long int rpl_ino_t;
 
 /* MSVC 9 defines size_t in <stddef.h>, not in <sys/types.h>.  */
 /* But avoid namespace pollution on glibc systems.  */
-#if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) \
-    && ! defined __GLIBC__
+#if (defined _WIN32 && ! defined __CYGWIN__) && ! defined __GLIBC__
 # include <stddef.h>
 #endif
 
index 16a456e5cf74f2e67b65a29c11cfc3d8e0900cfc..2b5cee2e9d555913aef482c5e7b99c211d645bc1 100644 (file)
@@ -23,7 +23,7 @@
 @PRAGMA_COLUMNS@
 
 /* The include_next requires a split double-inclusion guard.  */
-#if !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
+#if !(defined _WIN32 && ! defined __CYGWIN__)
 # @INCLUDE_NEXT@ @NEXT_SYS_WAIT_H@
 #endif
 
@@ -39,7 +39,7 @@
 /* The definition of _GL_WARN_ON_USE is copied here.  */
 
 
-#if !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
+#if !(defined _WIN32 && ! defined __CYGWIN__)
 /* Unix API.  */
 
 /* The following macros apply to an argument x, that is a status of a process,
 /* Declarations of functions.  */
 
 #if @GNULIB_WAITPID@
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
 _GL_FUNCDECL_SYS (waitpid, pid_t, (pid_t pid, int *statusp, int options));
 # endif
 _GL_CXXALIAS_SYS (waitpid, pid_t, (pid_t pid, int *statusp, int options));
index 2dabfa2893ceb17e686837081c5b621261a4f713..17d7024e98347e599360cb76f7eb7c8212c1a958 100644 (file)
@@ -27,7 +27,7 @@
 #include "sh-quote.h"
 #include "xalloc.h"
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 
 /* The native Windows CreateProcess() function interprets characters like
    ' ', '\t', '\\', '"' (but not '<' and '>') in a special way:
@@ -188,13 +188,13 @@ system_quote_length (enum system_command_interpreter interpreter,
 {
   switch (interpreter)
     {
-#if !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
+#if !(defined _WIN32 && ! defined __CYGWIN__)
     case SCI_SYSTEM:
 #endif
     case SCI_POSIX_SH:
       return shell_quote_length (string);
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
     case SCI_WINDOWS_CREATEPROCESS:
       return windows_createprocess_quote (NULL, string);
 
@@ -216,13 +216,13 @@ system_quote_copy (char *p,
 {
   switch (interpreter)
     {
-#if !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
+#if !(defined _WIN32 && ! defined __CYGWIN__)
     case SCI_SYSTEM:
 #endif
     case SCI_POSIX_SH:
       return shell_quote_copy (p, string);
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
     case SCI_WINDOWS_CREATEPROCESS:
       p += windows_createprocess_quote (p, string);
       *p = '\0';
@@ -247,13 +247,13 @@ system_quote (enum system_command_interpreter interpreter,
 {
   switch (interpreter)
     {
-#if !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
+#if !(defined _WIN32 && ! defined __CYGWIN__)
     case SCI_SYSTEM:
 #endif
     case SCI_POSIX_SH:
       return shell_quote (string);
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
     case SCI_WINDOWS_CREATEPROCESS:
     case SCI_SYSTEM:
     case SCI_WINDOWS_CMD:
index e6f8078fcb7dfc69a7e3e59ef8c773acbab1523d..564e4864e3052216c7a7f1440c0ce2ea09922103 100644 (file)
@@ -61,7 +61,7 @@ enum system_command_interpreter
   SCI_SYSTEM                    = 0
   /* The POSIX /bin/sh.  */
   , SCI_POSIX_SH                = 1
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   /* The native Windows CreateProcess() function.  */
   , SCI_WINDOWS_CREATEPROCESS   = 2
   /* The native Windows cmd.exe interpreter.  */
index d7ee70e8690ede940c3145709acbdb988577ad6d..fa8496501202673a2d56b285c151f72ff3ac0742 100644 (file)
@@ -42,7 +42,7 @@
 
 #include <sys/stat.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # define WIN32_LEAN_AND_MEAN  /* avoid including junk */
 # include <windows.h>
 #endif
@@ -60,7 +60,7 @@
 /* Pathname support.
    ISSLASH(C)           tests whether C is a directory separator character.
  */
-#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
+#if defined _WIN32 || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
   /* Native Windows, Cygwin, OS/2, DOS */
 # define ISSLASH(C) ((C) == '/' || (C) == '\\')
 #else
@@ -115,7 +115,7 @@ path_search (char *tmpl, size_t tmpl_len, const char *dir, const char *pfx,
     }
   if (dir == NULL)
     {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
       char dirbuf[PATH_MAX];
       DWORD retval;
 
index 4111f30d711c9e9656dcb1b975bd92d929fe16ba..5d296752b6b93cd7df179066a7e2a149d9d7dc0c 100644 (file)
@@ -40,7 +40,7 @@ tzset (void)
   struct tm save = *localtime_buffer_addr;
 #endif
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   /* Rectify the value of the environment variable TZ.
      There are four possible kinds of such values:
        - Traditional US time zone names, e.g. "PST8PDT".  Syntax: see
index 8956340aa46d105e62ad9c713550fad9c387f59e..da7faad71fbcfb6f84b0ab10c35724cd970f2f6a 100644 (file)
@@ -20,7 +20,7 @@
 #include <sys/utsname.h>
 
 /* This file provides an implementation only for the native Windows API.  */
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 
 #include <stdio.h>
 #include <stdlib.h>
index 4f2e86e5ba882c361ec107f9da927c26f3a1980b..98a5abe2175b871a182ad98fa1918988723f315f 100644 (file)
@@ -61,7 +61,7 @@
 /* But avoid namespace pollution on glibc systems.  */
 #if (!(defined SEEK_CUR && defined SEEK_END && defined SEEK_SET) \
      || ((@GNULIB_UNLINK@ || defined GNULIB_POSIXCHECK) \
-         && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)) \
+         && (defined _WIN32 && ! defined __CYGWIN__)) \
      || ((@GNULIB_SYMLINKAT@ || defined GNULIB_POSIXCHECK) \
          && defined __CYGWIN__)) \
     && ! defined __GLIBC__
    lseek(), read(), unlink(), write() in <io.h>.  */
 #if ((@GNULIB_CHDIR@ || @GNULIB_GETCWD@ || @GNULIB_RMDIR@ \
       || defined GNULIB_POSIXCHECK) \
-     && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__))
+     && (defined _WIN32 && ! defined __CYGWIN__))
 # include <io.h>     /* mingw32, mingw64 */
 # include <direct.h> /* mingw64, MSVC 9 */
 #elif (@GNULIB_CLOSE@ || @GNULIB_DUP@ || @GNULIB_DUP2@ || @GNULIB_ISATTY@ \
        || @GNULIB_LSEEK@ || @GNULIB_READ@ || @GNULIB_UNLINK@ || @GNULIB_WRITE@ \
        || defined GNULIB_POSIXCHECK) \
-      && ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
+      && (defined _WIN32 && ! defined __CYGWIN__)
 # include <io.h>
 #endif
 
index 80291d3acbdfd02667199b5328482efea8533300..1893c87f14e135fccb0eb2f27ec722ce9a7a26e6 100644 (file)
@@ -21,7 +21,7 @@
 /* Specification.  */
 #include <utime.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 
 # include <errno.h>
 # include <stdbool.h>
index 8a52a0d695d63425d39511c569ce8f866d2fd4f7..07fdb30952c25b9c6ab427306a2d364fbb1723d5 100644 (file)
@@ -45,7 +45,7 @@
 /* The definition of _GL_WARN_ON_USE is copied here.  */
 
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 
 /* Define 'struct utimbuf' as an alias of 'struct _utimbuf'
    (or possibly, if present, 'struct __utimbuf64').  */
index b92797a6b6460ee4aaa71ae5f365c430095e971a..d4234b26269417c3bf1e2033cd368d6e6a3e8d01 100644 (file)
@@ -47,7 +47,7 @@
    no greater than 1 billion.  */
 #if HAVE_UTIMENSAT
 enum { SYSCALL_RESOLUTION = 1 };
-#elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#elif defined _WIN32 && ! defined __CYGWIN__
 /* On native Windows, file times have 100 ns resolution. See
    <https://msdn.microsoft.com/en-us/library/ms724284.aspx>  */
 enum { SYSCALL_RESOLUTION = 100 };
index c0b0704eb29d29a50e53bb9b35f9ef41c218249f..e65f55d82fee8cca2a55eaa621e6225f570a20f1 100644 (file)
@@ -39,8 +39,7 @@
    GNU Emacs, which arranges for this in some other way and which
    defines WIN32_LEAN_AND_MEAN itself.  */
 
-#if ((defined _WIN32 || defined __WIN32__) \
-     && ! defined __CYGWIN__ && ! defined EMACS_CONFIGURATION)
+#if defined _WIN32 && ! defined __CYGWIN__ && ! defined EMACS_CONFIGURATION
 # define USE_SETFILETIME
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
index 155b16ea04bedc3cce8f3a80fb84a8a82ed292b2..56ffbe308a6a9e9ce1ff26da6f9beb4f1bd4ccca 100644 (file)
@@ -4243,7 +4243,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
                                   static const wchar_t decimal_format[] =
                                     /* Produce the same number of exponent digits
                                        as the native printf implementation.  */
-#    if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#    if defined _WIN32 && ! defined __CYGWIN__
                                     { '%', '+', '.', '3', 'd', '\0' };
 #    else
                                     { '%', '+', '.', '2', 'd', '\0' };
@@ -4257,7 +4257,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
                                   static const char decimal_format[] =
                                     /* Produce the same number of exponent digits
                                        as the native printf implementation.  */
-#    if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#    if defined _WIN32 && ! defined __CYGWIN__
                                     "%+.3d";
 #    else
                                     "%+.2d";
@@ -4436,7 +4436,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
                                           static const wchar_t decimal_format[] =
                                             /* Produce the same number of exponent digits
                                                as the native printf implementation.  */
-#    if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#    if defined _WIN32 && ! defined __CYGWIN__
                                             { '%', '+', '.', '3', 'd', '\0' };
 #    else
                                             { '%', '+', '.', '2', 'd', '\0' };
@@ -4450,7 +4450,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
                                           static const char decimal_format[] =
                                             /* Produce the same number of exponent digits
                                                as the native printf implementation.  */
-#    if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#    if defined _WIN32 && ! defined __CYGWIN__
                                             "%+.3d";
 #    else
                                             "%+.2d";
@@ -4508,7 +4508,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
                                 *p++ = '+';
                                 /* Produce the same number of exponent digits as
                                    the native printf implementation.  */
-#   if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#   if defined _WIN32 && ! defined __CYGWIN__
                                 *p++ = '0';
 #   endif
                                 *p++ = '0';
@@ -4836,7 +4836,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
 #if HAVE_LONG_LONG_INT
                   case TYPE_LONGLONGINT:
                   case TYPE_ULONGLONGINT:
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
                     *fbp++ = 'I';
                     *fbp++ = '6';
                     *fbp++ = '4';
@@ -4872,7 +4872,7 @@ VASNPRINTF (DCHAR_T *resultbuf, size_t *lengthp,
 # if ! (((__GLIBC__ > 2 || (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 3))        \
          && !defined __UCLIBC__)                                            \
         || (defined __APPLE__ && defined __MACH__)                          \
-        || ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__))
+        || (defined _WIN32 && ! defined __CYGWIN__))
                 fbp[1] = '%';
                 fbp[2] = 'n';
                 fbp[3] = '\0';
index 6045f21d766dbaa206d469f0876515d1498a0b9f..b98b0415fe9ee3aeedac8b26a9d7bd80f21317c4 100644 (file)
@@ -86,7 +86,7 @@
 # include <mach/mach.h>
 #endif
 
-#if (defined _WIN32 || defined __WIN32__) || defined __CYGWIN__ /* Windows */
+#if defined _WIN32 || defined __CYGWIN__ /* Windows */
 # include <windows.h>
 #endif
 
@@ -1397,7 +1397,7 @@ vma_iterate (vma_iterate_callback_fn callback, void *data)
     }
   return 0;
 
-#elif (defined _WIN32 || defined __WIN32__) || defined __CYGWIN__
+#elif defined _WIN32 || defined __CYGWIN__
   /* Windows platform.  Use the native Windows API.  */
 
   MEMORY_BASIC_INFORMATION info;
index fae3b13f90ccdf3702a752447149aa2cb4e8650e..1b46d9b19ab24721b11a0addf70276f6212c1deb 100644 (file)
@@ -52,7 +52,7 @@ extern int vma_iterate (vma_iterate_callback_fn callback, void *data);
    this platform.
    Note that even when this macro is defined, vma_iterate() may still fail to
    find any virtual memory area, for example if /proc is not mounted.  */
-#if defined __linux__ || defined __GNU__ || defined __FreeBSD_kernel__ || defined __FreeBSD__ || defined __DragonFly__ || defined __NetBSD__ || defined __sgi || defined __osf__ || defined __sun || HAVE_PSTAT_GETPROCVM || (defined __APPLE__ && defined __MACH__) || (defined _WIN32 || defined __WIN32__) || defined __CYGWIN__ || defined __BEOS__ || defined __HAIKU__ || defined __minix || HAVE_MQUERY
+#if defined __linux__ || defined __GNU__ || defined __FreeBSD_kernel__ || defined __FreeBSD__ || defined __DragonFly__ || defined __NetBSD__ || defined __sgi || defined __osf__ || defined __sun || HAVE_PSTAT_GETPROCVM || (defined __APPLE__ && defined __MACH__) || defined _WIN32 || defined __CYGWIN__ || defined __BEOS__ || defined __HAIKU__ || defined __minix || HAVE_MQUERY
 # define VMA_ITERATE_SUPPORTED 1
 #endif
 
index 1926bf54d7b46836c2cc3a3b232fe62330d54688..9e59c08dd8c2512817de56eac9d4e49af7b9a5dc 100644 (file)
@@ -39,7 +39,7 @@
 #define SIZEOF(a) (sizeof(a) / sizeof(a[0]))
 
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
index 00d8e61efb5b5cc3b3ddfafd70e2a0ff9cb85cb1..c0c006aec8a8aa1e94b04069ffcc1362114f96ca 100644 (file)
@@ -28,7 +28,7 @@
 size_t
 rpl_wcsftime (wchar_t *buf, size_t bufsize, const wchar_t *format, const struct tm *tp)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   /* Rectify the value of the environment variable TZ.
      There are four possible kinds of such values:
        - Traditional US time zone names, e.g. "PST8PDT".  Syntax: see
index 502b8c45698c4e13a2615b20a439a1909eb0ec8d..928fc2d5f10fcb9aa02a1acecfb09db659ab52be 100644 (file)
@@ -60,7 +60,7 @@
    isw* functions in <ctype.h>, <wchar.h> as well as in <wctype.h>.  Include
    <ctype.h>, <wchar.h> in advance to avoid rpl_ prefix being added to the
    declarations.  */
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # include <ctype.h>
 # include <wchar.h>
 #endif
index 92b36ad81a3378395b707d5e0d2befa0b3c45cf6..06166241e62c4b8774d183c492d257a23d21bf88 100644 (file)
@@ -25,7 +25,7 @@
    GetLastError() = ERROR_NO_DATA, and write() in consequence fails with
    error EINVAL.  */
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 
 # include <errno.h>
 # include <signal.h>
index 2e5fbcfdf78b450ae14995aa867ad73dd6fed93c..f645ffdc47f033d6dff191967b84dab15f88aa8f 100644 (file)
@@ -1,4 +1,4 @@
-# csharpexec.m4 serial 5
+# csharpexec.m4 serial 6
 dnl Copyright (C) 2003-2005, 2009-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -15,7 +15,7 @@ AC_DEFUN([gt_CSHARPEXEC],
   AC_REQUIRE([AC_CANONICAL_HOST]) dnl for cross-compiles
   AC_MSG_CHECKING([for C[#] program execution engine])
   AC_EGREP_CPP([yes], [
-#if defined _WIN32 || defined __WIN32__ || defined __EMX__ || defined __DJGPP__
+#if defined _WIN32 || defined __EMX__ || defined __DJGPP__
   yes
 #endif
 ], MONO_PATH_SEPARATOR=';', MONO_PATH_SEPARATOR=':')
index 2875fe590b15831495048dab25e6e49d0f128bcc..019934d5807d2d3c4caa9837c98a7ab1c19db9f2 100644 (file)
@@ -6,7 +6,7 @@
 # with or without modifications, as long as this notice is preserved.
 
 # Written by Paul Eggert.
-# serial 15
+# serial 16
 
 AC_DEFUN([gl_FUNC_GETCWD_NULL],
   [
@@ -25,7 +25,7 @@ AC_DEFUN([gl_FUNC_GETCWD_NULL],
          char *getcwd ();
 #        endif
 ]], [[
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 /* mingw cwd does not start with '/', but getcwd does allocate.
    However, mingw fails to honor non-zero size.  */
 #else
index c4d650bfdc88c59fa18fd253609902e1d5130fa7..bee333ea7b291598d3947adbe83cc516cb923571 100644 (file)
@@ -1,4 +1,4 @@
-# javacomp.m4 serial 15
+# javacomp.m4 serial 16
 dnl Copyright (C) 2001-2003, 2006-2007, 2009-2018 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
@@ -83,7 +83,7 @@ AC_DEFUN([gt_JAVACOMP],
 [
   ifelse([$2], [], [AC_REQUIRE([gt_JAVAEXEC])], [])
   AC_EGREP_CPP([yes], [
-#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
+#if defined _WIN32 || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
   yes
 #endif
 ], CLASSPATH_SEPARATOR=';', CLASSPATH_SEPARATOR=':')
index 1dcf005e534c8e3cea7aab55b619d280ddb003aa..aefe2bce4b14f3e000b28ce0740f43cb8a138666 100644 (file)
@@ -1,4 +1,4 @@
-# javaexec.m4 serial 5
+# javaexec.m4 serial 6
 dnl Copyright (C) 2001-2003, 2006, 2009-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -12,7 +12,7 @@ AC_DEFUN([gt_JAVAEXEC],
 [
   AC_MSG_CHECKING([for Java virtual machine])
   AC_EGREP_CPP([yes], [
-#if defined _WIN32 || defined __WIN32__ || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
+#if defined _WIN32 || defined __CYGWIN__ || defined __EMX__ || defined __DJGPP__
   yes
 #endif
 ], CLASSPATH_SEPARATOR=';', CLASSPATH_SEPARATOR=':')
index 3024441546b20163db08382bdda720c7425d8c95..ee386b9adc8c8392d4133ef046995297ec5d60cf 100644 (file)
@@ -1,4 +1,4 @@
-# locale-ar.m4 serial 7
+# locale-ar.m4 serial 8
 dnl Copyright (C) 2003, 2005-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -31,7 +31,7 @@ int main () {
   return 1;
 #else
   /* Check whether the given locale name is recognized by the system.  */
-# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+# if defined _WIN32 && !defined __CYGWIN__
   /* On native Windows, setlocale(category, "") looks at the system settings,
      not at the environment variables.  Also, when an encoding suffix such
      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
index 30a1d94bdc1a5532b1a3442bc1b807c3a6025960..a37a0d20241450f0dcb7c593ee505b9e44b67583 100644 (file)
@@ -1,4 +1,4 @@
-# locale-fr.m4 serial 18
+# locale-fr.m4 serial 19
 dnl Copyright (C) 2003, 2005-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -31,7 +31,7 @@ int main () {
   return 1;
 #else
   /* Check whether the given locale name is recognized by the system.  */
-# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+# if defined _WIN32 && !defined __CYGWIN__
   /* On native Windows, setlocale(category, "") looks at the system settings,
      not at the environment variables.  Also, when an encoding suffix such
      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
@@ -160,7 +160,7 @@ int main () {
      variables, and all locales use the UTF-8 encoding.  */
 #if !(defined __BEOS__ || defined __HAIKU__)
   /* Check whether the given locale name is recognized by the system.  */
-# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+# if defined _WIN32 && !defined __CYGWIN__
   /* On native Windows, setlocale(category, "") looks at the system settings,
      not at the environment variables.  Also, when an encoding suffix such
      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
index 2c340062962345a0845c6af2a40e95f4896c2873..9f1623191d3033bec8f37f36a93f768f3d2b0a39 100644 (file)
@@ -1,4 +1,4 @@
-# locale-ja.m4 serial 13
+# locale-ja.m4 serial 14
 dnl Copyright (C) 2003, 2005-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -32,7 +32,7 @@ int main ()
   return 1;
 #else
   /* Check whether the given locale name is recognized by the system.  */
-# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+# if defined _WIN32 && !defined __CYGWIN__
   /* On native Windows, setlocale(category, "") looks at the system settings,
      not at the environment variables.  Also, when an encoding suffix such
      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
index 441cae68176b27975950eaffd5a17141774977de..2f2cf47892d505a56821102e409ae5de547e3039 100644 (file)
@@ -1,4 +1,4 @@
-# locale-tr.m4 serial 10
+# locale-tr.m4 serial 11
 dnl Copyright (C) 2003, 2005-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -30,7 +30,7 @@ int main () {
      implement the Turkish upper-/lowercase mappings.  Therefore, let this
      program return 1 on BeOS.  */
   /* Check whether the given locale name is recognized by the system.  */
-#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+#if defined _WIN32 && !defined __CYGWIN__
   /* On native Windows, setlocale(category, "") looks at the system settings,
      not at the environment variables.  Also, when an encoding suffix such
      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
index f7e1901d0ddebb9fede2678a33f79e5da67bffb6..cfb447f08d4508aca084e1f8fdea2e7b453cdcb4 100644 (file)
@@ -1,4 +1,4 @@
-# locale-zh.m4 serial 13
+# locale-zh.m4 serial 14
 dnl Copyright (C) 2003, 2005-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -33,7 +33,7 @@ int main ()
   return 1;
 #else
   /* Check whether the given locale name is recognized by the system.  */
-# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+# if defined _WIN32 && !defined __CYGWIN__
   /* On native Windows, setlocale(category, "") looks at the system settings,
      not at the environment variables.  Also, when an encoding suffix such
      as ".65001" or ".54936" is specified, it succeeds but sets the LC_CTYPE
index 0ded9ba219995caf448ab35ba289d631a75d9fbd..4c182b4140650efaf2c340b60d0ef833cd69d4b8 100644 (file)
@@ -1,4 +1,4 @@
-# malloc.m4 serial 16
+# malloc.m4 serial 17
 dnl Copyright (C) 2007, 2009-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -91,7 +91,7 @@ AC_DEFUN([gl_CHECK_MALLOC_POSIX],
       AC_COMPILE_IFELSE(
         [AC_LANG_PROGRAM(
            [[]],
-           [[#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+           [[#if defined _WIN32 && ! defined __CYGWIN__
              choke me
              #endif
             ]])],
index 87b2d4cbf69697433ba19691ead09a672cf8f1f0..49140074d08596e3388c42fbfd9a27005e3e3ab5 100644 (file)
@@ -1,4 +1,4 @@
-# nocrash.m4 serial 4
+# nocrash.m4 serial 5
 dnl Copyright (C) 2005, 2009-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -79,7 +79,7 @@ nocrash_init (void)
     }
   }
 }
-#elif (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#elif defined _WIN32 && ! defined __CYGWIN__
 /* Avoid a crash on native Windows.  */
 #define WIN32_LEAN_AND_MEAN
 #include <windows.h>
index 403a37534d88f3986230a3b90eeb6ed58cec8a0c..292a25697116aed451359f81018b833b8031aff2 100644 (file)
@@ -1,4 +1,4 @@
-# pathmax.m4 serial 10
+# pathmax.m4 serial 11
 dnl Copyright (C) 2002-2003, 2005-2006, 2009-2018 Free Software Foundation,
 dnl Inc.
 dnl This file is free software; the Free Software Foundation
@@ -29,7 +29,7 @@ AC_DEFUN([gl_PATHMAX_SNIPPET], [[
 # undef PATH_MAX
 # define PATH_MAX 1024
 #endif
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # undef PATH_MAX
 # define PATH_MAX 260
 #endif
index 879b8333721cbbd8040a3eb1cf0ef64d717f652e..10b4dff5092edd02359e1b29b1f9f959e45ab62a 100644 (file)
@@ -1,4 +1,4 @@
-# ptsname_r.m4 serial 4
+# ptsname_r.m4 serial 5
 dnl Copyright (C) 2010-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -54,7 +54,7 @@ AC_DEFUN([gl_PREREQ_PTSNAME_R], [
     [AC_RUN_IFELSE(
        [AC_LANG_PROGRAM(
           [[#include <errno.h>
-            #if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+            #if defined _WIN32 && ! defined __CYGWIN__
             # include <io.h>
             #else
             # include <unistd.h>
index e06461e6934b9db3c4da47027f89387f08324a7c..0debe69e92d94a2a3175278ce4ab2a9242b1d9f4 100644 (file)
@@ -1,4 +1,4 @@
-# stdio_h.m4 serial 48
+# stdio_h.m4 serial 49
 dnl Copyright (C) 2007-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -28,7 +28,7 @@ AC_DEFUN([gl_STDIO_H],
        /* For non-mingw systems, compilation will trivially succeed.
           For mingw, compilation will succeed for older mingw (system
           printf, "I64d") and fail for newer mingw (gnu printf, "lld"). */
-       #if ((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__) && \
+       #if (defined _WIN32 && ! defined __CYGWIN__) && \
          (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 4))
        extern char PRIdMAX_probe[sizeof PRIdMAX == sizeof "I64d" ? 1 : -1];
        #endif
index 0735feb7b3dcc55ceb7348e6990880f357562814..043dd38ac0e05ad7175ef6b6a7a81a597b6ece5d 100644 (file)
@@ -1,4 +1,4 @@
-# tmpfile.m4 serial 2
+# tmpfile.m4 serial 3
 # Copyright (C) 2007, 2009-2018 Free Software Foundation, Inc.
 # This file is free software; the Free Software Foundation
 # gives unlimited permission to copy and/or distribute it,
@@ -23,7 +23,7 @@ AC_DEFUN([gl_FUNC_TMPFILE], [
   AC_CACHE_CHECK([whether tmpfile should be overridden],
     [gl_cv_func_tmpfile_unusable],
     [AC_EGREP_CPP([choke me], [
-#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+#if defined _WIN32 && !defined __CYGWIN__
 choke me
 #endif
        ],
index b3b71ec2709e7e844efb5e161c2e3333b7bffc80..77110a93ddf80824d8f7248734c7cb65b0206c4c 100644 (file)
@@ -1,4 +1,4 @@
-# unistd_h.m4 serial 71
+# unistd_h.m4 serial 72
 dnl Copyright (C) 2006-2018 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -37,7 +37,7 @@ AC_DEFUN([gl_UNISTD_H],
 # include <fcntl.h>
 # include <stdio.h>
 # include <stdlib.h>
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
 #  include <io.h>
 # endif
 #endif
index 97a3cca5489e4814afae7bf15a9ced4540bd6ef0..a155af3a12b5724e458bf3b38df5551ba7f922e5 100644 (file)
@@ -64,7 +64,7 @@ nap_get_stat (struct stat *st, int do_write)
   if (do_write)
     {
       ASSERT (write (nap_fd, "\n", 1) == 1);
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
       /* On native Windows, the modification times are not changed until NAP_FD
          is closed. See
          https://msdn.microsoft.com/en-us/library/windows/desktop/aa365747(v=vs.85).aspx */
index 6d91154e87440d7d078006d7076a93ff9f514523..8f8fcf6fcddc6c139c191c9e802fc3889d9516e6 100644 (file)
@@ -24,7 +24,7 @@
 #include <fcntl.h>
 #include <unistd.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 /* Get declarations of the native Windows API functions.  */
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
@@ -43,7 +43,7 @@
 static int
 is_inheritable (int fd)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   /* On native Windows, the initial state of unassigned standard file
      descriptors is that they are open but point to an
      INVALID_HANDLE_VALUE, and there is no fcntl.  */
@@ -90,7 +90,7 @@ main (void)
 
   /* Normal use of set_cloexec_flag.  */
   ASSERT (set_cloexec_flag (fd, true) == 0);
-#if !((defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__)
+#if !(defined _WIN32 && ! defined __CYGWIN__)
   ASSERT (!is_inheritable (fd));
 #endif
   ASSERT (set_cloexec_flag (fd, false) == 0);
index 5fb38cb8824fe2437b7abdee68ffd5336407f731..223509fe5eca3972f3f83aaf247d056e33b3cb0e 100644 (file)
@@ -29,7 +29,7 @@
 #include "binary-io.h"
 #include "cloexec.h"
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 /* Get declarations of the native Windows API functions.  */
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
@@ -60,7 +60,7 @@ static FILE *myerr;
 static bool
 is_open (int fd)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   /* On native Windows, the initial state of unassigned standard file
      descriptors is that they are open but point to an
      INVALID_HANDLE_VALUE, and there is no fcntl.  */
@@ -77,7 +77,7 @@ is_open (int fd)
 static bool
 is_inheritable (int fd)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   /* On native Windows, the initial state of unassigned standard file
      descriptors is that they are open but point to an
      INVALID_HANDLE_VALUE, and there is no fcntl.  */
index 90fbeb94d6408c51a2edee9028ab9d23f20732f5..665425462bc36bafe3f457ac502c9f0ad010c288 100644 (file)
@@ -36,7 +36,7 @@ SIGNATURE_CHECK (dup2, int, (int, int));
 # include "cloexec.h"
 #endif
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 /* Get declarations of the native Windows API functions.  */
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
@@ -54,7 +54,7 @@ SIGNATURE_CHECK (dup2, int, (int, int));
 static int
 is_open (int fd)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   /* On native Windows, the initial state of unassigned standard file
      descriptors is that they are open but point to an
      INVALID_HANDLE_VALUE, and there is no fcntl.  */
@@ -72,7 +72,7 @@ is_open (int fd)
 static int
 is_inheritable (int fd)
 {
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
   /* On native Windows, the initial state of unassigned standard file
      descriptors is that they are open but point to an
      INVALID_HANDLE_VALUE, and there is no fcntl.  */
index aed888cf0bbda519627f7331f77177d73076afaf..87c1ca463a02e9d827e6f1e64debf833db22fe8f 100644 (file)
@@ -28,7 +28,7 @@ SIGNATURE_CHECK (dup3, int, (int, int, int));
 #include <fcntl.h>
 #include <stdbool.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 /* Get declarations of the native Windows API functions.  */
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
@@ -47,7 +47,7 @@ SIGNATURE_CHECK (dup3, int, (int, int, int));
 static bool
 is_open (int fd)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   /* On native Windows, the initial state of unassigned standard file
      descriptors is that they are open but point to an
      INVALID_HANDLE_VALUE, and there is no fcntl.  */
@@ -64,7 +64,7 @@ is_open (int fd)
 static bool
 is_cloexec (int fd)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   HANDLE h = (HANDLE) _get_osfhandle (fd);
   DWORD flags;
   ASSERT (GetHandleInformation (h, &flags));
index 476231be20cf8a9dd4ee7d3f1e1f014deffe43c7..5d6467403f3e15fdbef1a67d09ad230e8eb09a7b 100644 (file)
@@ -30,7 +30,7 @@ SIGNATURE_CHECK (fcntl, int, (int, int, ...));
 #include <stdbool.h>
 #include <unistd.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 /* Get declarations of the native Windows API functions.  */
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
@@ -54,7 +54,7 @@ static int zero (void) { return 0; }
 static bool
 is_open (int fd)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   /* On native Windows, the initial state of unassigned standard file
      descriptors is that they are open but point to an
      INVALID_HANDLE_VALUE, and there is no fcntl.  */
@@ -71,7 +71,7 @@ is_open (int fd)
 static bool
 is_inheritable (int fd)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   /* On native Windows, the initial state of unassigned standard file
      descriptors is that they are open but point to an
      INVALID_HANDLE_VALUE, and there is no fcntl.  */
index ea631ca2e97e2e2350e9dac1fd3dcdf35e40149f..e030c77782bdc24c361bbe3349007d6110724f97 100644 (file)
@@ -55,7 +55,7 @@ main ()
       ASSERT (value2 >= value1);
       ASSERT (value3 >= value2);
 
-#if !(__GLIBC__ == 2 || (defined __APPLE__ && defined __MACH__) || defined __DragonFly__ || defined __OpenBSD__ || (defined _WIN32 || defined __WIN32__) || defined __CYGWIN__)
+#if !(__GLIBC__ == 2 || (defined __APPLE__ && defined __MACH__) || defined __DragonFly__ || defined __OpenBSD__ || defined _WIN32 || defined __CYGWIN__)
       /* Allocating 2.5 MB of memory should increase the data segment size.  */
       ASSERT (value3 > value1);
 #endif
index 0fa666b02f931219594256de1ddf40f77af22020..8e42ccfc135cb86664de30071f4115c26f1a76b9 100644 (file)
@@ -26,7 +26,7 @@ SIGNATURE_CHECK (gai_strerror, char const *, (int));
 /* On native Windows, these two functions may have the __stdcall calling
    convention.  But the SIGNATURE_CHECK works only for functions with __cdecl
    calling convention.  */
-#if !((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__)
+#if !(defined _WIN32 && !defined __CYGWIN__)
 SIGNATURE_CHECK (freeaddrinfo, void, (struct addrinfo *));
 SIGNATURE_CHECK (getaddrinfo, int, (char const *, char const *,
                                     struct addrinfo const *,
index c77d360f4b5dc012e11ca887639679b290645def..61a57400db5db3dd8385db3b79fac01817bcdc72 100644 (file)
@@ -21,7 +21,7 @@
 #include <stdlib.h>
 #include <string.h>
 #include <unistd.h>
-#if !((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__)
+#if !(defined _WIN32 && !defined __CYGWIN__)
 # include <pwd.h>
 #endif
 
@@ -55,7 +55,7 @@ test_getlogin_result (const char *buf, int err)
     }
 
   /* Compare against the value from the environment.  */
-#if !((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__)
+#if !(defined _WIN32 && !defined __CYGWIN__)
   /* Unix platform */
   {
     struct stat stat_buf;
@@ -79,7 +79,7 @@ test_getlogin_result (const char *buf, int err)
     ASSERT (pwd->pw_uid == stat_buf.st_uid);
   }
 #endif
-#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+#if defined _WIN32 && !defined __CYGWIN__
   /* Native Windows platform.
      Note: This test would fail on Cygwin in an ssh session, because sshd
      sets USERNAME=SYSTEM.  */
index 58ebbe0610c8a2ba0766842f03a094ac82317063..a2dd17608586fb61d6b2294f55578be9314194de 100644 (file)
@@ -27,7 +27,7 @@ SIGNATURE_CHECK (isatty, int, (int));
 #include "macros.h"
 
 /* The name of the "always silent" device.  */
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 /* Native Windows API.  */
 # define DEV_NULL "NUL"
 #else
index 7e866c74ec79db478948de497bc1d58dc057d24d..4e8d146b4bb51a1307a9472e3eaa9749ba7f601c 100644 (file)
@@ -155,7 +155,7 @@ test_locale_name (void)
   if (setlocale (LC_ALL, "") != NULL)
     {
       name = gl_locale_name (LC_CTYPE, "LC_CTYPE");
-#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+#if defined _WIN32 && !defined __CYGWIN__
       /* On native Windows, here,
            gl_locale_name_thread (LC_CTYPE, "LC_CTYPE")
          returns NULL and
@@ -584,7 +584,7 @@ test_locale_name_posix (void)
   if (setlocale (LC_ALL, "") != NULL)
     {
       name = gl_locale_name_posix (LC_CTYPE, "LC_CTYPE");
-#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+#if defined _WIN32 && !defined __CYGWIN__
       ASSERT (strcmp (name, "de_DE") == 0 || strcmp (name, "de_DE.UTF-8") == 0);
 #else
       ASSERT (strcmp (name, "de_DE.UTF-8") == 0);
@@ -750,7 +750,7 @@ test_locale_name_default (void)
 
   /* Only Mac OS X and Windows have a facility for the user to set the default
      locale.  */
-#if !((defined __APPLE__ && defined __MACH__) || (defined _WIN32 || defined __WIN32__ || defined __CYGWIN__))
+#if !((defined __APPLE__ && defined __MACH__) || (defined _WIN32 || defined __CYGWIN__))
   ASSERT (strcmp (name, "C") == 0);
 #endif
 
index 2f83386efecaa16524fba964d5fbd9712de59734..ba4d755f67c69247c890cdd095daca3c0ce4c8b4 100644 (file)
@@ -26,7 +26,7 @@
 
 #include "macros.h"
 
-#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+#if defined _WIN32 && !defined __CYGWIN__
 
 static int
 test_one_locale (const char *name, int codepage)
index e8a1f547e1ad09c3879d21b730dfbace7f640c5a..b847b99b86fa9a0749c1085090e69f9ea8c3d02e 100644 (file)
@@ -24,7 +24,7 @@
 #include <unistd.h>
 #include <sys/time.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # include <process.h>
 #else
 # include <spawn.h>
@@ -81,7 +81,7 @@ main (int argc, char *argv[])
     child_argv[1] = argv[2];
     child_argv[2] = NULL;
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
     child = spawnvpe (P_NOWAIT, child_path, child_argv,
                       (const char **) environ);
     ASSERT (child >= 0);
index fe5000cf69d42a7237b0738cdfcf92fa7d011947..6c0e96d093cf16be365a98825dec542d5bf1680c 100644 (file)
@@ -25,7 +25,7 @@
 #include <sys/time.h>
 #include <sys/socket.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # include <process.h>
 #else
 # include <spawn.h>
@@ -68,7 +68,7 @@ main (int argc, char *argv[])
     child_argv[2] = port_arg;
     child_argv[3] = NULL;
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
     child = spawnvpe (P_NOWAIT, child_path, child_argv,
                       (const char **) environ);
     ASSERT (child >= 0);
index aff99a84c4a14949fcf67626613a9b7f65053a42..d1a0fd75d7f537d1b2b93e2d1f1c76514f35f661 100644 (file)
@@ -44,7 +44,7 @@
    sockets have very large buffers in the kernel, so that write() calls
    succeed before the reader has started reading, even if fd is blocking
    and the amount of data is larger than 1 MB.  */
-#if defined __linux__ || (defined __APPLE__ && defined __MACH__) || (defined _WIN32 || defined __WIN32__) || defined __CYGWIN__
+#if defined __linux__ || (defined __APPLE__ && defined __MACH__) || defined _WIN32 || defined __CYGWIN__
 # define SOCKET_HAS_LARGE_BUFFER 1
 #else
 # define SOCKET_HAS_LARGE_BUFFER 0
index d0f18cd0d12e821bdf27725ab1f3880a9fe93ee9..27ec4e78b80e6e1db2596f96c137bec0ba4d5a43 100644 (file)
@@ -85,7 +85,7 @@ main (void)
     bool sock_works = true;
     int fd_sock;
 
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
     /* For now, we can't get nonblocking status of windows sockets.  */
     sock_works = false;
 # endif
index b39af7f16b9324ac58cf97478c70e377ee592223..55f62089e4dd214c4e58f5970dd0417f76017f73 100644 (file)
@@ -24,7 +24,7 @@ SIGNATURE_CHECK (pipe, int, (int[2]));
 #include <fcntl.h>
 #include <stdbool.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 /* Get declarations of the native Windows API functions.  */
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
@@ -43,7 +43,7 @@ SIGNATURE_CHECK (pipe, int, (int[2]));
 static bool
 is_open (int fd)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   /* On native Windows, the initial state of unassigned standard file
      descriptors is that they are open but point to an
      INVALID_HANDLE_VALUE, and there is no fcntl.  */
@@ -60,7 +60,7 @@ is_open (int fd)
 static bool
 is_cloexec (int fd)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   HANDLE h = (HANDLE) _get_osfhandle (fd);
   DWORD flags;
   ASSERT (GetHandleInformation (h, &flags));
@@ -76,7 +76,7 @@ is_cloexec (int fd)
 static bool
 is_nonblocking (int fd)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   /* We don't use the non-blocking mode for sockets here.  */
   return 0;
 #else
index d1632eea071ed2b02d3e1c7492a119fa80866fc6..4fd347debaa9d2abd6235ce4d0f9fa39d8237742 100644 (file)
@@ -24,7 +24,7 @@ SIGNATURE_CHECK (pipe2, int, (int[2], int));
 #include <fcntl.h>
 #include <stdbool.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 /* Get declarations of the native Windows API functions.  */
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
@@ -46,7 +46,7 @@ SIGNATURE_CHECK (pipe2, int, (int[2], int));
 static bool
 is_open (int fd)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   /* On native Windows, the initial state of unassigned standard file
      descriptors is that they are open but point to an
      INVALID_HANDLE_VALUE, and there is no fcntl.  */
@@ -63,7 +63,7 @@ is_open (int fd)
 static bool
 is_cloexec (int fd)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   HANDLE h = (HANDLE) _get_osfhandle (fd);
   DWORD flags;
   ASSERT (GetHandleInformation (h, &flags));
@@ -79,7 +79,7 @@ is_cloexec (int fd)
 static int
 get_nonblocking_flag (int fd)
 {
-# if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+# if defined _WIN32 && ! defined __CYGWIN__
   return 0;
 # else
 #  ifndef F_GETFL
index ebace0f1864e3148c541add11edcf7212f93c520..5dce09e6436d12b8fbeed903e57749e63ad28e81 100644 (file)
@@ -37,7 +37,7 @@ SIGNATURE_CHECK (poll, int, (struct pollfd[], nfds_t, int));
 
 #include "macros.h"
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # define WINDOWS_NATIVE
 #endif
 
index fc4d3d0707cac83aa73d7bfb8c036f4e25916e35..92edb7758eabdf0323cae13e26ef39529841451a 100644 (file)
@@ -30,7 +30,7 @@ SIGNATURE_CHECK (pthread_sigmask, int, (int, const sigset_t *, sigset_t *));
 
 #include "macros.h"
 
-#if !((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__)
+#if !(defined _WIN32 && !defined __CYGWIN__)
 
 static volatile int sigint_occurred;
 
index 364687b6c567523ed635d9337dc8726e5d39bea0..eae26b0d15d547907c56424a3fff9d48daac6025 100644 (file)
@@ -30,7 +30,7 @@
 
 #include "macros.h"
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 # define WINDOWS_NATIVE
 #endif
 
index 50f0916e54008fab29ba79d904ec4b7b8c2e2bdb..671a36a9c423ec30fe2ffaa778ec43423883c6e5 100644 (file)
@@ -93,7 +93,7 @@ main (int argc, char *argv[] _GL_UNUSED)
 
       /* On Windows, a hostname change becomes effective only after
          a reboot.  */
-#if !((defined _WIN32 || defined __WIN32__) || defined __CYGWIN__)
+#if !(defined _WIN32 || defined __CYGWIN__)
 
       /* if we don't get back what we put in, there is no need to
          restore the original name as we will assume it was not
index bf8e3a63162a64958bc206d07574b9c3b2f0bb84..7b09bb10d7f252dc53fe26caea9d172183deb5a7 100644 (file)
@@ -30,7 +30,7 @@ SIGNATURE_CHECK (sigprocmask, int, (int, const sigset_t *, sigset_t *));
 
 #include "macros.h"
 
-#if !((defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__)
+#if !(defined _WIN32 && !defined __CYGWIN__)
 
 static volatile int sigint_occurred;
 
index dfbc2da47ffe4e240459ccab356cd5bbf6e45ff4..14522f5af277368ec913755ab608774da7dbca03 100644 (file)
@@ -22,7 +22,7 @@
 #include <stdlib.h>
 #include <unistd.h>
 
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
 /* Get declarations of the native Windows API functions.  */
 # define WIN32_LEAN_AND_MEAN
 # include <windows.h>
@@ -53,7 +53,7 @@ static FILE *myerr;
 static int
 is_open (int fd)
 {
-#if (defined _WIN32 || defined __WIN32__) && ! defined __CYGWIN__
+#if defined _WIN32 && ! defined __CYGWIN__
   /* On native Windows, the initial state of unassigned standard file
      descriptors is that they are open but point to an
      INVALID_HANDLE_VALUE, and there is no fcntl.  */
index 23cf303c30569c73478a90a485945823f8682a5e..49d5497d91cb0fcf8c15c8792a55eef124711847 100644 (file)
@@ -167,7 +167,7 @@ test_mtime (const struct stat *statinfo, struct timespec *modtimes)
     }
 }
 
-#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+#if defined _WIN32 && !defined __CYGWIN__
 /* Skip the ctime tests on native Windows platforms, because their
    st_ctime is either the same as st_mtime (plus or minus an offset)
    or set to the file _creation_ time, and is not influenced by rename
index 2e81799778c7655c112deb186f52d4fd7160030a..b0326ae5425bb1e023a3a91b7626aa5dc734e2f6 100644 (file)
@@ -21,7 +21,7 @@
 /* Specification.  */
 #include "system-quote.h"
 
-#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+#if defined _WIN32 && !defined __CYGWIN__
 # define WINDOWS_NATIVE
 #endif
 
index 5a3f268226c5cafbdea2d4857d30774af3ab57f3..57f401658625ff2c86976ada6e8b19f559443fe0 100644 (file)
@@ -49,7 +49,7 @@ enum {
                           : 0)
 };
 
-# if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+# if defined _WIN32 && !defined __CYGWIN__
 /* Skip ctime tests on native Windows, since it is either a copy of
    mtime or birth time (depending on the file system), rather than a
    properly tracked change time.  See
index e8576c740fe13c68cc46f5741f7c79bbbe03f8b2..19770d1b5e32f5189f740caa9e49bbad46fdfe90 100644 (file)
@@ -25,7 +25,7 @@
 
 #include "macros.h"
 
-#if (defined _WIN32 || defined __WIN32__) && !defined __CYGWIN__
+#if defined _WIN32 && !defined __CYGWIN__
 
 static int
 test_one_locale (const char *name, int codepage)