From 0e4c7b3264ab03793dfee50bc80340de3d21da48 Mon Sep 17 00:00:00 2001 From: George Peter Banyard Date: Wed, 13 May 2020 00:29:17 +0200 Subject: [PATCH] utime is always available on Windows Therefore drop useless preprocessor if check Closes GH-5563 --- TSRM/tsrm_win32.c | 2 -- TSRM/tsrm_win32.h | 4 +--- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c index cccb0d3732e..05c47d146aa 100644 --- a/TSRM/tsrm_win32.c +++ b/TSRM/tsrm_win32.c @@ -769,7 +769,6 @@ TSRM_API int shmctl(int key, int cmd, struct shmid_ds *buf) } }/*}}}*/ -#if HAVE_UTIME static zend_always_inline void UnixTimeToFileTime(time_t t, LPFILETIME pft) /* {{{ */ { // Note that LONGLONG is a 64-bit value @@ -824,4 +823,3 @@ TSRM_API int win32_utime(const char *filename, struct utimbuf *buf) /* {{{ */ } /* }}} */ #endif -#endif diff --git a/TSRM/tsrm_win32.h b/TSRM/tsrm_win32.h index 4af6225c931..c16006512a4 100644 --- a/TSRM/tsrm_win32.h +++ b/TSRM/tsrm_win32.h @@ -19,9 +19,7 @@ #include "TSRM.h" #include -#if HAVE_UTIME -# include -#endif +#include #include "win32/ipc.h" struct ipc_perm {