mirror of
https://github.com/php/php-src.git
synced 2026-04-10 01:23:53 +02:00
- More TSRM work
This commit is contained in:
6
TSRM/tsrm_config.w32.h
Normal file
6
TSRM/tsrm_config.w32.h
Normal file
@@ -0,0 +1,6 @@
|
||||
#ifndef TSRM_CONFIG_W32_H
|
||||
#define TSRM_CONFIG_W32_H
|
||||
|
||||
#define HAVE_UTIME 1
|
||||
|
||||
#endif
|
||||
@@ -29,11 +29,6 @@
|
||||
#include <fcntl.h>
|
||||
|
||||
#include "tsrm_virtual_cwd.h"
|
||||
|
||||
#ifndef TSRM_WIN32
|
||||
#include "tsrm_config.h"
|
||||
#endif
|
||||
|
||||
#include "tsrm_strtok_r.h"
|
||||
|
||||
|
||||
@@ -513,7 +508,7 @@ CWD_API FILE *virtual_fopen(const char *path, const char *mode)
|
||||
return f;
|
||||
}
|
||||
|
||||
#if HAVE_UTIME || defined(TSRM_WIN32)
|
||||
#if HAVE_UTIME
|
||||
CWD_API int virtual_utime(const char *filename, struct utimbuf *buf)
|
||||
{
|
||||
cwd_state new_state;
|
||||
|
||||
@@ -26,6 +26,12 @@
|
||||
# define TSRM_WIN32
|
||||
#endif
|
||||
|
||||
#ifndef TSRM_WIN32
|
||||
# include "tsrm_config.h"
|
||||
#else
|
||||
# include "tsrm_config.w32.h"
|
||||
#endif
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/stat.h>
|
||||
#include <ctype.h>
|
||||
|
||||
Reference in New Issue
Block a user