File tree Expand file tree Collapse file tree 5 files changed +50
-85
lines changed Expand file tree Collapse file tree 5 files changed +50
-85
lines changed Original file line number Diff line number Diff line change 32
32
33
33
#if WIN32
34
34
# include "config.w32.h"
35
- # include "win95nt.h"
36
35
# ifdef PHP_EXPORTS
37
36
# define PHPAPI __declspec(dllexport)
38
37
# else
Original file line number Diff line number Diff line change 27
27
#include "zend_llist.h"
28
28
#include "zend_operators.h"
29
29
#ifdef PHP_WIN32
30
- #include "win95nt.h"
31
30
#include "win32/php_stdint.h"
32
31
#endif
33
32
#include <sys/stat.h>
Original file line number Diff line number Diff line change 47
47
48
48
#ifdef PHP_WIN32
49
49
# include "tsrm_win32.h"
50
- # include "win95nt.h"
51
50
# ifdef PHP_EXPORTS
52
51
# define PHPAPI __declspec(dllexport)
53
52
# else
66
65
# define PHP_EOL "\n"
67
66
#endif
68
67
68
+ /* Windows specific defines */
69
+ #ifdef PHP_WIN32
70
+ # define PHP_PROG_SENDMAIL "Built in mailer"
71
+ # define HAVE_DECLARED_TIMEZONE
72
+ # define WIN32_LEAN_AND_MEAN
73
+ # define NOOPENFILE
74
+
75
+ # include <io.h>
76
+ # include <malloc.h>
77
+ # include <direct.h>
78
+ # include <stdlib.h>
79
+ # include <stdio.h>
80
+ # include <stdarg.h>
81
+ # include <sys/types.h>
82
+ # include <process.h>
83
+
84
+ typedef int uid_t ;
85
+ typedef int gid_t ;
86
+ typedef char * caddr_t ;
87
+ typedef unsigned int uint ;
88
+ typedef unsigned long ulong ;
89
+ # if !NSAPI
90
+ typedef int pid_t ;
91
+ # endif
92
+
93
+ # ifndef PHP_DEBUG
94
+ # ifdef inline
95
+ # undef inline
96
+ # endif
97
+ # define inline __inline
98
+ # endif
99
+
100
+ # define M_TWOPI (M_PI * 2.0)
101
+ # define off_t _off_t
102
+
103
+ # define lstat (x , y ) php_sys_lstat(x, y)
104
+ # define chdir (path ) _chdir(path)
105
+ # define mkdir (a , b ) _mkdir(a)
106
+ # define rmdir (a ) _rmdir(a)
107
+ # define getpid _getpid
108
+ # define php_sleep (t ) SleepEx(t*1000, TRUE)
109
+
110
+ # ifndef getcwd
111
+ # define getcwd (a , b ) _getcwd(a, b)
112
+ # endif
113
+ #endif
114
+
69
115
#if HAVE_ASSERT_H
70
116
#if PHP_DEBUG
71
117
#undef NDEBUG
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -3032,8 +3032,9 @@ function toolset_setup_common_cflags()
3032
3032
DEFINE ( 'CFLAGS_PHP_OBJ' , '$(CFLAGS_PHP) $(STATIC_EXT_CFLAGS)' ) ;
3033
3033
3034
3034
// General CFLAGS for building objects
3035
- DEFINE ( "CFLAGS" , "/nologo $(BASE_INCLUDES) /D _WINDOWS \
3036
- /D ZEND_WIN32=1 /D PHP_WIN32=1 /D WIN32 /D _MBCS /W3" ) ;
3035
+ DEFINE ( "CFLAGS" , "/nologo $(BASE_INCLUDES) /D _WINDOWS /D WINDOWS=1 \
3036
+ /D ZEND_WIN32=1 /D PHP_WIN32=1 /D WIN32 /D _MBCS /W3 \
3037
+ /D _USE_MATH_DEFINES" ) ;
3037
3038
3038
3039
if ( VS_TOOLSET ) {
3039
3040
ADD_FLAG ( "CFLAGS" , " /FD " ) ;
You can’t perform that action at this time.
0 commit comments