]> granicus.if.org Git - php/commitdiff
add sanity check for time_t size of win32
authorUwe Schindler <thetaphi@php.net>
Sun, 11 Jan 2009 13:39:01 +0000 (13:39 +0000)
committerUwe Schindler <thetaphi@php.net>
Sun, 11 Jan 2009 13:39:01 +0000 (13:39 +0000)
sapi/nsapi/nsapi.c

index 38efcaec6dda1981a172daa73b0010781e54c4f6..257e874164e72cc8320f2271df91d203966b1f22 100644 (file)
 #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
  */