]> granicus.if.org Git - php/commitdiff
utime is always available on Windows
authorGeorge Peter Banyard <girgias@php.net>
Tue, 12 May 2020 22:29:17 +0000 (00:29 +0200)
committerGeorge Peter Banyard <girgias@php.net>
Wed, 13 May 2020 10:05:29 +0000 (12:05 +0200)
Therefore drop useless preprocessor if check

Closes GH-5563

TSRM/tsrm_win32.c
TSRM/tsrm_win32.h

index cccb0d3732ef59c144768aabbd9e648f15261c65..05c47d146aa3ed0bf56f94b83cdd5803934a6d03 100644 (file)
@@ -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
index 4af6225c9316c5d0af57ecbb904f6415c3a849d7..c16006512a4ca87d8ef1fd681e952fac4de7918f 100644 (file)
@@ -19,9 +19,7 @@
 
 #include "TSRM.h"
 #include <windows.h>
-#if HAVE_UTIME
-# include <sys/utime.h>
-#endif
+#include <sys/utime.h>
 #include "win32/ipc.h"
 
 struct ipc_perm {