summaryrefslogtreecommitdiff
path: root/TSRM
diff options
context:
space:
mode:
authorHarald Radi <phanto@php.net>2002-08-07 14:47:42 +0000
committerHarald Radi <phanto@php.net>2002-08-07 14:47:42 +0000
commit99c90db11aa6a89e79c68ada92c83086c8b743d1 (patch)
tree572de047689ed4aef467a39d0296b389ce5845d1 /TSRM
parenta77c0a13f70324b8ea2b45397e206e7ff0da6353 (diff)
downloadphp-git-99c90db11aa6a89e79c68ada92c83086c8b743d1.tar.gz
make win32 debug output more verbose
Diffstat (limited to 'TSRM')
-rw-r--r--TSRM/TSRM.c1
-rw-r--r--TSRM/TSRM.h1
-rw-r--r--TSRM/tsrm_config.w32.h5
-rw-r--r--TSRM/tsrm_config_common.h4
-rw-r--r--TSRM/tsrm_win32.c2
-rw-r--r--TSRM/tsrm_win32.h4
6 files changed, 6 insertions, 11 deletions
diff --git a/TSRM/TSRM.c b/TSRM/TSRM.c
index 6af686b035..f391a8c40b 100644
--- a/TSRM/TSRM.c
+++ b/TSRM/TSRM.c
@@ -15,7 +15,6 @@
#ifdef ZTS
#include <stdio.h>
-#include <stdlib.h>
#if HAVE_STDARG_H
#include <stdarg.h>
diff --git a/TSRM/TSRM.h b/TSRM/TSRM.h
index fb8b4347f9..d13a4fd1cf 100644
--- a/TSRM/TSRM.h
+++ b/TSRM/TSRM.h
@@ -20,6 +20,7 @@
#ifdef WIN32
# define TSRM_WIN32
+# include "tsrm_config.w32.h"
#endif
#ifdef TSRM_WIN32
diff --git a/TSRM/tsrm_config.w32.h b/TSRM/tsrm_config.w32.h
index 405d8c7c8f..712b714ae7 100644
--- a/TSRM/tsrm_config.w32.h
+++ b/TSRM/tsrm_config.w32.h
@@ -3,6 +3,11 @@
#define HAVE_UTIME 1
#define HAVE_ALLOCA 1
+#define _CRTDBG_MAP_ALLOC
+
+#include <malloc.h>
+#include <stdlib.h>
+#include <crtdbg.h>
#undef inline
#ifdef ZEND_WIN32_FORCE_INLINE
diff --git a/TSRM/tsrm_config_common.h b/TSRM/tsrm_config_common.h
index 6c220fa008..7ba86e70ad 100644
--- a/TSRM/tsrm_config_common.h
+++ b/TSRM/tsrm_config_common.h
@@ -14,10 +14,6 @@
# include <sys/param.h>
#endif
-#ifdef TSRM_WIN32
-#include <malloc.h>
-#endif
-
/* AIX requires this to be the first thing in the file. */
#ifndef __GNUC__
# if HAVE_ALLOCA_H
diff --git a/TSRM/tsrm_win32.c b/TSRM/tsrm_win32.c
index 09999af69e..691443a243 100644
--- a/TSRM/tsrm_win32.c
+++ b/TSRM/tsrm_win32.c
@@ -18,7 +18,6 @@
/* $Id$ */
-#include <stdlib.h>
#include <stdio.h>
#include <fcntl.h>
#include <io.h>
@@ -28,7 +27,6 @@
#include "TSRM.h"
#ifdef TSRM_WIN32
-#include <windows.h>
#include "tsrm_win32.h"
#ifdef ZTS
diff --git a/TSRM/tsrm_win32.h b/TSRM/tsrm_win32.h
index 7931beafc4..5e6ec7ece7 100644
--- a/TSRM/tsrm_win32.h
+++ b/TSRM/tsrm_win32.h
@@ -22,8 +22,6 @@
#define TSRM_WIN32_H
#include "TSRM.h"
-
-#ifdef TSRM_WIN32
#include <windows.h>
struct ipc_perm {
@@ -73,8 +71,6 @@ typedef struct {
# define TWG(v) (win32_globals.v)
#endif
-#endif
-
#define IPC_PRIVATE 0
#define IPC_CREAT 00001000
#define IPC_EXCL 00002000