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 #define S_IFLNK _IFLNK
43 #ifndef S_ISREG
44 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
45 #endif
46 #define chdir(path) _chdir(path)
47 #define mkdir(a, b) _mkdir(a)
48 #define rmdir(a) _rmdir(a)
49 #define getpid _getpid
50 #define php_sleep(t) SleepEx(t*1000, TRUE)
51 #ifndef getcwd
52 # define getcwd(a, b) _getcwd(a, b)
53 #endif
54 #define off_t _off_t
55 typedef unsigned int uint;
56 typedef unsigned long ulong;
57 #if !NSAPI
58 typedef long pid_t;
59 #endif
60
61
62 #define M_PI 3.14159265358979323846
63 #define M_TWOPI (M_PI * 2.0)
64 #define M_PI_2 1.57079632679489661923
65 #ifndef M_PI_4
66 #define M_PI_4 0.78539816339744830962
67 #endif
68
69 #if !defined(PHP_DEBUG)
70 #ifdef inline
71 #undef inline
72 #endif
73 #define inline __inline
74 #endif
75
76
77 #ifndef WINDOWS
78 # define WINDOWS 1
79 #endif
80
81
82
83 #define NOOPENFILE
84
85
86 #ifdef PHP_PROG_SENDMAIL
87 #undef PHP_PROG_SENDMAIL
88 #define PHP_PROG_SENDMAIL "Built in mailer"
89 #endif