1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 #define HAVE_DECLARED_TIMEZONE
23 #define WIN32_LEAN_AND_MEAN
24 #include <io.h>
25 #include <malloc.h>
26 #include <direct.h>
27 #include <stdlib.h>
28 #include <stdio.h>
29 #include <stdarg.h>
30 #include <sys/types.h>
31 #include <process.h>
32
33 typedef int uid_t;
34 typedef int gid_t;
35 typedef char * caddr_t;
36 #define lstat(x, y) php_sys_lstat(x, y)
37 #define _IFIFO 0010000
38 #define _IFBLK 0060000
39 #define _IFLNK 0120000
40 #define S_IFIFO _IFIFO
41 #define S_IFBLK _IFBLK
42 #ifndef S_IFLNK
43 # define S_IFLNK _IFLNK
44 #endif
45 #define chdir(path) _chdir(path)
46 #define mkdir(a, b) _mkdir(a)
47 #define rmdir(a) _rmdir(a)
48 #define getpid _getpid
49 #define php_sleep(t) SleepEx(t*1000, TRUE)
50 #ifndef getcwd
51 # define getcwd(a, b) _getcwd(a, b)
52 #endif
53 #define off_t _off_t
54 typedef unsigned int uint;
55 typedef unsigned long ulong;
56 #if !NSAPI
57 typedef int pid_t;
58 #endif
59
60
61 #define M_PI 3.14159265358979323846
62 #define M_TWOPI (M_PI * 2.0)
63 #define M_PI_2 1.57079632679489661923
64 #ifndef M_PI_4
65 #define M_PI_4 0.78539816339744830962
66 #endif
67
68 #if !defined(PHP_DEBUG)
69 #ifdef inline
70 #undef inline
71 #endif
72 #define inline __inline
73 #endif
74
75
76 #ifndef WINDOWS
77 # define WINDOWS 1
78 #endif
79
80
81
82 #define NOOPENFILE
83
84
85 #ifdef PHP_PROG_SENDMAIL
86 #undef PHP_PROG_SENDMAIL
87 #define PHP_PROG_SENDMAIL "Built in mailer"
88 #endif