[Python-checkins] cpython: Issue #25207, #14626: Fix ICC compiler warnings in posixmodule.c

victor.stinner python-checkins at python.org
Mon Sep 21 22:37:56 CEST 2015


https://hg.python.org/cpython/rev/a138a1131bae
changeset:   98148:a138a1131bae
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Mon Sep 21 22:37:15 2015 +0200
summary:
  Issue #25207, #14626: Fix ICC compiler warnings in posixmodule.c

Replace "#if XXX" with #ifdef XXX".

files:
  Modules/posixmodule.c |  6 +++---
  1 files changed, 3 insertions(+), 3 deletions(-)


diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -4609,7 +4609,7 @@
 #define UTIME_HAVE_NOFOLLOW_SYMLINKS \
         (defined(HAVE_UTIMENSAT) || defined(HAVE_LUTIMES))
 
-#if UTIME_HAVE_NOFOLLOW_SYMLINKS
+#ifdef UTIME_HAVE_NOFOLLOW_SYMLINKS
 
 static int
 utime_nofollow_symlinks(utime_t *ut, char *path)
@@ -4771,7 +4771,7 @@
         utime.now = 1;
     }
 
-#if !UTIME_HAVE_NOFOLLOW_SYMLINKS
+#if !defined(UTIME_HAVE_NOFOLLOW_SYMLINKS)
     if (follow_symlinks_specified("utime", follow_symlinks))
         goto exit;
 #endif
@@ -4825,7 +4825,7 @@
 #else /* MS_WINDOWS */
     Py_BEGIN_ALLOW_THREADS
 
-#if UTIME_HAVE_NOFOLLOW_SYMLINKS
+#ifdef UTIME_HAVE_NOFOLLOW_SYMLINKS
     if ((!follow_symlinks) && (dir_fd == DEFAULT_DIR_FD))
         result = utime_nofollow_symlinks(&utime, path->narrow);
     else

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list