On Sun, Jan 11, 2009 at 2:39 PM, Uwe Schindler <theta...@php.net> wrote: > thetaphi Sun Jan 11 13:39:01 2009 UTC > > Modified files: > /php-src/sapi/nsapi nsapi.c > Log: > add sanity check for time_t size of win32 > > http://cvs.php.net/viewvc.cgi/php-src/sapi/nsapi/nsapi.c?r1=1.101&r2=1.102&diff_format=u > Index: php-src/sapi/nsapi/nsapi.c > diff -u php-src/sapi/nsapi/nsapi.c:1.101 php-src/sapi/nsapi/nsapi.c:1.102 > --- php-src/sapi/nsapi/nsapi.c:1.101 Tue Jan 6 13:45:30 2009 > +++ php-src/sapi/nsapi/nsapi.c Sun Jan 11 13:39:01 2009 > @@ -17,7 +17,7 @@ > +----------------------------------------------------------------------+ > */ > > -/* $Id: nsapi.c,v 1.101 2009/01/06 13:45:30 thetaphi Exp $ */ > +/* $Id: nsapi.c,v 1.102 2009/01/11 13:39:01 thetaphi Exp $ */ > > /* > * PHP includes > @@ -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
We already do this check in the main configuration file, you may want to rely on it instead. -- Pierre http://blog.thepimp.net | http://www.libgd.org -- PHP CVS Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php