[Vortex] Microsoft compiler warning
Francis Brosnan Blazquez
francis at aspl.es
Wed Nov 7 15:05:38 CET 2007
Hi Chris,
>From the code, you can always define HAVE_GETTIMEOFDAY macro to avoid
including gettimeofday symbol. Did you check this or this also fails?
Cheers!
> Here’s a warning I get from the Visual Studio 2005 compiler about the
> definition of “struct timezone” in “vortex_win32.h”.
>
>
>
> warning C6244: Local declaration of 'timezone' hides previous
> declaration at line '286' of
>
> c:\program files\microsoft visual studio 8\vc\include\time.h
>
>
>
>
>
> Specifically, time.h declares “extern long timezone;” which conflicts
> with the “struct timezone” declaration.
>
>
>
> The fix is to name “struct timezone” something like “struct
> timezoneWin32” instead and update the win32 definition of gettimeofday
> to use the same struct type. From the Vortex code I can tell that this
> should work.
--
Francis Brosnan Blazquez <francis at aspl.es>
Advanced Software Production Line, S.L.
More information about the Vortex
mailing list