Skip to content

Commit 4552ced

Browse files
committed
Issue #25207, #14626: Fix ICC compiler warnings in posixmodule.c
Replace "#if XXX" with #ifdef XXX".
1 parent 1d59fee commit 4552ced

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Modules/posixmodule.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4609,7 +4609,7 @@ utime_fd(utime_t *ut, int fd)
46094609
#define UTIME_HAVE_NOFOLLOW_SYMLINKS \
46104610
(defined(HAVE_UTIMENSAT) || defined(HAVE_LUTIMES))
46114611

4612-
#if UTIME_HAVE_NOFOLLOW_SYMLINKS
4612+
#ifdef UTIME_HAVE_NOFOLLOW_SYMLINKS
46134613

46144614
static int
46154615
utime_nofollow_symlinks(utime_t *ut, char *path)
@@ -4771,7 +4771,7 @@ os_utime_impl(PyModuleDef *module, path_t *path, PyObject *times,
47714771
utime.now = 1;
47724772
}
47734773

4774-
#if !UTIME_HAVE_NOFOLLOW_SYMLINKS
4774+
#if !defined(UTIME_HAVE_NOFOLLOW_SYMLINKS)
47754775
if (follow_symlinks_specified("utime", follow_symlinks))
47764776
goto exit;
47774777
#endif
@@ -4825,7 +4825,7 @@ os_utime_impl(PyModuleDef *module, path_t *path, PyObject *times,
48254825
#else /* MS_WINDOWS */
48264826
Py_BEGIN_ALLOW_THREADS
48274827

4828-
#if UTIME_HAVE_NOFOLLOW_SYMLINKS
4828+
#ifdef UTIME_HAVE_NOFOLLOW_SYMLINKS
48294829
if ((!follow_symlinks) && (dir_fd == DEFAULT_DIR_FD))
48304830
result = utime_nofollow_symlinks(&utime, path->narrow);
48314831
else

0 commit comments

Comments
 (0)