summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-09-21 20:37:15 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-09-21 20:37:15 (GMT)
commit4552ced91673b5138460e3d697b4bea8f4aab93b (patch)
tree0a40bf70fdf213edcdd84ceb0d33bffa562a9a4c
parent1d59fee294d0bca792dacca4d5cc7dd21fedec95 (diff)
downloadcpython-4552ced91673b5138460e3d697b4bea8f4aab93b.zip
cpython-4552ced91673b5138460e3d697b4bea8f4aab93b.tar.gz
cpython-4552ced91673b5138460e3d697b4bea8f4aab93b.tar.bz2
Issue #25207, #14626: Fix ICC compiler warnings in posixmodule.c
Replace "#if XXX" with #ifdef XXX".
-rw-r--r--Modules/posixmodule.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c
index 6654fbb..e5b4792 100644
--- a/Modules/posixmodule.c
+++ b/Modules/posixmodule.c
@@ -4609,7 +4609,7 @@ utime_fd(utime_t *ut, int fd)
#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 @@ os_utime_impl(PyModuleDef *module, path_t *path, PyObject *times,
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 @@ os_utime_impl(PyModuleDef *module, path_t *path, PyObject *times,
#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