diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-09-21 23:29:33 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-09-21 23:29:33 (GMT) |
commit | 5ebae876281828c17f139ec063dae43a39fd7741 (patch) | |
tree | 830d5b3eb026658916895a93b54a822611a1d859 /Modules/posixmodule.c | |
parent | 6174474bea9fe6f5f12f05a16004eabb817ce721 (diff) | |
download | cpython-5ebae876281828c17f139ec063dae43a39fd7741.zip cpython-5ebae876281828c17f139ec063dae43a39fd7741.tar.gz cpython-5ebae876281828c17f139ec063dae43a39fd7741.tar.bz2 |
Issue #25207, #14626: Fix my commit.
It doesn't work to use #define XXX defined(YYY)" and then "#ifdef XXX"
to check YYY.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index e5b4792..467ce2c 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -4605,9 +4605,9 @@ utime_fd(utime_t *ut, int fd) #define PATH_UTIME_HAVE_FD 0 #endif - -#define UTIME_HAVE_NOFOLLOW_SYMLINKS \ - (defined(HAVE_UTIMENSAT) || defined(HAVE_LUTIMES)) +#if defined(HAVE_UTIMENSAT) || defined(HAVE_LUTIMES) +# define UTIME_HAVE_NOFOLLOW_SYMLINKS +#endif #ifdef UTIME_HAVE_NOFOLLOW_SYMLINKS |