win32 problem with timezones
| From: | Chris Gardner | Date: | Wed, 12 Sep 2001 19:45:23 +0000 |
| Subject: | win32 problem with timezones | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-65844@lists.php.net to get a copy of this message | ||
ok guys. i know i left a message simular to this before, but i have a lot
more info on it now, and i'm getting nowhere. i'm on win2k win vc++ 6.
trying to use cygwin to compile in gcc. used the vcvars32.bat to configure
my path beforehand. here's the problem.
i go to compile and get an error on standard/datetime.c it's complaining
about thier being no unary operators for timezone. after some digging, i
found that i'm not using the extern time_t timezone; from the #if block
above. instead, it's looking at the struct defination from the #include
<sys/time.h>. this struct doesn't have the unary operators for them, so i
blow up. i've tried casting the timezone to a long, but gcc laughed at me.
anybody got a suggestion or two on this one?
Chris Gardner
Book Systems, Inc.
cgardner@booksys.com