At 19:58 03.03.2002, Stanislav Malyshev wrote:
>MB>> datetime.c: In function `php_mktime':
>MB>> datetime.c:187: wrong type argument to unary minus
>MB>>              gmadjust = -(is_dst ? (int)timezone - 3600 : (int)timezone);
>MB>> see (int) conversion of timezone -> gmadjust has type int
>MB>>
>MB>> datetime.c: In function `php_date':
>MB>> datetime.c:254: warning: assignment makes integer from pointer 
>without a cast
>MB>>                  tzone = (long)timezone;
>MB>> see (long) conversion of timezone -> tzone has type long
>MB>>
>MB>>  >>>> i think we can commit this to cvs anyone against? <<<<
>
>That's the same issue - timezone is a function in cygwin, and the thing
>that is meant here is _timezone. However, I don't know how to express this
>in ifdef-HAVE_THIS_AND_THAT terms. Anyone?

#ifdef __CYGWIN__
              gmadjust = -(is_dst ? (int)timezone - 3600 : (int)timezone);
#else
              gmadjust = -(is_dst ? timezone - 3600 : timezone);
#endif

But do **not ** worry it is **not** necessary....


>--
>Stanislav Malyshev, Zend Products Engineer
>[EMAIL PROTECTED]  http://www.zend.com/ +972-3-6139665 ext.115
>
>
>
>
>--
>PHP Development Mailing List <http://www.php.net/>
>To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to