summaryrefslogtreecommitdiff
path: root/main/php.h
diff options
context:
space:
mode:
Diffstat (limited to 'main/php.h')
-rw-r--r--main/php.h52
1 files changed, 46 insertions, 6 deletions
diff --git a/main/php.h b/main/php.h
index 7f38d3026a..a8a852fc17 100644
--- a/main/php.h
+++ b/main/php.h
@@ -26,7 +26,7 @@
#include <dmalloc.h>
#endif
-#define PHP_API_VERSION 20160303
+#define PHP_API_VERSION 20160731
#define PHP_HAVE_STREAMS
#define YYDEBUG 0
#define PHP_DEFAULT_CHARSET "UTF-8"
@@ -47,7 +47,6 @@
#ifdef PHP_WIN32
# include "tsrm_win32.h"
-# include "win95nt.h"
# ifdef PHP_EXPORTS
# define PHPAPI __declspec(dllexport)
# else
@@ -66,10 +65,51 @@
# define PHP_EOL "\n"
#endif
-#ifdef NETWARE
-/* For php_get_uname() function */
-#define PHP_UNAME "NetWare"
-#define PHP_OS PHP_UNAME
+/* Windows specific defines */
+#ifdef PHP_WIN32
+# define PHP_PROG_SENDMAIL "Built in mailer"
+# define HAVE_DECLARED_TIMEZONE
+# define WIN32_LEAN_AND_MEAN
+# define NOOPENFILE
+
+# include <io.h>
+# include <malloc.h>
+# include <direct.h>
+# include <stdlib.h>
+# include <stdio.h>
+# include <stdarg.h>
+# include <sys/types.h>
+# include <process.h>
+
+typedef int uid_t;
+typedef int gid_t;
+typedef char * caddr_t;
+typedef unsigned int uint;
+typedef unsigned long ulong;
+# if !NSAPI
+typedef int pid_t;
+# endif
+
+# ifndef PHP_DEBUG
+# ifdef inline
+# undef inline
+# endif
+# define inline __inline
+# endif
+
+# define M_TWOPI (M_PI * 2.0)
+# define off_t _off_t
+
+# define lstat(x, y) php_sys_lstat(x, y)
+# define chdir(path) _chdir(path)
+# define mkdir(a, b) _mkdir(a)
+# define rmdir(a) _rmdir(a)
+# define getpid _getpid
+# define php_sleep(t) SleepEx(t*1000, TRUE)
+
+# ifndef getcwd
+# define getcwd(a, b) _getcwd(a, b)
+# endif
#endif
#if HAVE_ASSERT_H