summaryrefslogtreecommitdiff
path: root/gnulib-tests/test-cloexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnulib-tests/test-cloexec.c')
-rw-r--r--gnulib-tests/test-cloexec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gnulib-tests/test-cloexec.c b/gnulib-tests/test-cloexec.c
index 6d91154..8f8fcf6 100644
--- a/gnulib-tests/test-cloexec.c
+++ b/gnulib-tests/test-cloexec.c
@@ -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);