hi,
i checked timezone and _timezone works for me
if have no idea who can do this but after checking compilation with
cygwin i now have *.o files. Maybe this is the problem why it did not
compile but nether the less adding this type would be a good idea.
Could anyone add
*.o
to .cvsignore files?
marcus
At 23:39 03.03.2002, you wrote:
>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
Sorry did it wrong
#ifdef __CYGWIN__
gmadjust = -(is_dst ? _timezone - 3600 : _timezone);
#else
gmadjust = -(is_dst ? timezone - 3600 : timezone);
#endif
And yes it compiles this way.
>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
--
PHP Development Mailing List <http://www.php.net/>
To unsubscribe, visit: http://www.php.net/unsub.php