Skip to content

Commit 0e4c7b3

Browse files
committed
utime is always available on Windows
Therefore drop useless preprocessor if check Closes GH-5563
1 parent f150b02 commit 0e4c7b3

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

TSRM/tsrm_win32.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -769,7 +769,6 @@ TSRM_API int shmctl(int key, int cmd, struct shmid_ds *buf)
769769
}
770770
}/*}}}*/
771771

772-
#if HAVE_UTIME
773772
static zend_always_inline void UnixTimeToFileTime(time_t t, LPFILETIME pft) /* {{{ */
774773
{
775774
// Note that LONGLONG is a 64-bit value
@@ -824,4 +823,3 @@ TSRM_API int win32_utime(const char *filename, struct utimbuf *buf) /* {{{ */
824823
}
825824
/* }}} */
826825
#endif
827-
#endif

TSRM/tsrm_win32.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919

2020
#include "TSRM.h"
2121
#include <windows.h>
22-
#if HAVE_UTIME
23-
# include <sys/utime.h>
24-
#endif
22+
#include <sys/utime.h>
2523
#include "win32/ipc.h"
2624

2725
struct ipc_perm {

0 commit comments

Comments
 (0)