summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUwe Schindler <thetaphi@php.net>2009-01-11 13:39:39 +0000
committerUwe Schindler <thetaphi@php.net>2009-01-11 13:39:39 +0000
commit4db4009c71b38aaaf68746316e025a2e88471d44 (patch)
treea50746227d76106816ec1dbb683fe3a0b45541a6
parentd14021cb4e89bb7fbcb865a5dcb94301d9388ac0 (diff)
downloadphp-git-4db4009c71b38aaaf68746316e025a2e88471d44.tar.gz
MFH: add sanity check for time_t size of win32
-rw-r--r--sapi/nsapi/nsapi.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/sapi/nsapi/nsapi.c b/sapi/nsapi/nsapi.c
index ccef7a4900..935673cbfb 100644
--- a/sapi/nsapi/nsapi.c
+++ b/sapi/nsapi/nsapi.c
@@ -55,7 +55,14 @@
#define XP_UNIX
#endif
#endif
-
+
+/*
+ * For windows do some sanity checks, because time_t must be 32bit for NSAPI on win32
+ */
+#if defined(PHP_WIN32) && !defined(_WIN64) && sizeof(time_t)!=4
+#error "NSAPI module needs time_t to have a size of 32 bits on win32"
+#endif
+
/*
* NSAPI includes
*/