mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Replace "#if XXX" with #ifdef XXX".
This commit is contained in:
parent
1d59fee294
commit
4552ced916
1 changed files with 3 additions and 3 deletions
|
@ -4609,7 +4609,7 @@ utime_fd(utime_t *ut, int fd)
|
||||||
#define UTIME_HAVE_NOFOLLOW_SYMLINKS \
|
#define UTIME_HAVE_NOFOLLOW_SYMLINKS \
|
||||||
(defined(HAVE_UTIMENSAT) || defined(HAVE_LUTIMES))
|
(defined(HAVE_UTIMENSAT) || defined(HAVE_LUTIMES))
|
||||||
|
|
||||||
#if UTIME_HAVE_NOFOLLOW_SYMLINKS
|
#ifdef UTIME_HAVE_NOFOLLOW_SYMLINKS
|
||||||
|
|
||||||
static int
|
static int
|
||||||
utime_nofollow_symlinks(utime_t *ut, char *path)
|
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;
|
utime.now = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if !UTIME_HAVE_NOFOLLOW_SYMLINKS
|
#if !defined(UTIME_HAVE_NOFOLLOW_SYMLINKS)
|
||||||
if (follow_symlinks_specified("utime", follow_symlinks))
|
if (follow_symlinks_specified("utime", follow_symlinks))
|
||||||
goto exit;
|
goto exit;
|
||||||
#endif
|
#endif
|
||||||
|
@ -4825,7 +4825,7 @@ os_utime_impl(PyModuleDef *module, path_t *path, PyObject *times,
|
||||||
#else /* MS_WINDOWS */
|
#else /* MS_WINDOWS */
|
||||||
Py_BEGIN_ALLOW_THREADS
|
Py_BEGIN_ALLOW_THREADS
|
||||||
|
|
||||||
#if UTIME_HAVE_NOFOLLOW_SYMLINKS
|
#ifdef UTIME_HAVE_NOFOLLOW_SYMLINKS
|
||||||
if ((!follow_symlinks) && (dir_fd == DEFAULT_DIR_FD))
|
if ((!follow_symlinks) && (dir_fd == DEFAULT_DIR_FD))
|
||||||
result = utime_nofollow_symlinks(&utime, path->narrow);
|
result = utime_nofollow_symlinks(&utime, path->narrow);
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue