From: Uwe Schindler Date: Sun, 11 Jan 2009 13:39:01 +0000 (+0000) Subject: add sanity check for time_t size of win32 X-Git-Tag: php-5.4.0alpha1~191^2~4561 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=044971a23abb8ce321d438c3f2f3147c43fd4ebf;p=php add sanity check for time_t size of win32 --- diff --git a/sapi/nsapi/nsapi.c b/sapi/nsapi/nsapi.c index 38efcaec6d..257e874164 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 */