(original) (raw)
changeset: 98148:a138a1131bae user: Victor Stinner victor.stinner@gmail.com date: Mon Sep 21 22:37:15 2015 +0200 files: Modules/posixmodule.c description: Issue #25207, #14626: Fix ICC compiler warnings in posixmodule.c Replace "#if XXX" with #ifdef XXX". diff -r 1f979a573f8d -r a138a1131bae Modules/posixmodule.c --- a/Modules/posixmodule.c Mon Sep 21 22:29:43 2015 +0200 +++ b/Modules/posixmodule.c Mon Sep 21 22:37:15 2015 +0200 @@ -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 /victor.stinner@gmail.com