On 2/19/08, Daniel Stone <[EMAIL PROTECTED]> wrote:
> On Tue, Feb 19, 2008 at 07:56:34PM +0900, José Fonseca wrote:
> > Microsoft compilers don't support C99 syntax. The only native windows
> > compilers that support C99 syntax are mingw32-gcc and Intel C/C++
> > compiler, but we can't seriously support windows platform by targeting
> > these compilers alone and leave msvc out.
> >
> > So there is no point in pretending that C99 syntax is OK when
> > compiling gallium source code with gcc on unices. The -std=c99 option
> > will have to go away.
> >
> > The -ansi option is too restrictive, so the best is just to use the
> > gcc default, which is "gnu89", corresponding to the 1990 C standard
> > plus GNU extensions.
>
> OOI, do you have a list of syntax which it does and doesn't support?
> (e.g. does it support variadic macros, named initialisers, interleaved
>  code & decls?)

MSVC doesn't support neither of things you mentioned. Which causes us
a lot of grieve whenever we port some code to windows.

By default gcc supports those, but using -pedantic will cause a
warning -- the best compromise IMO -- people will still be able to
compile that, but they will be informed that they should not commit
such code.

Jose

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Mesa3d-dev mailing list
Mesa3d-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mesa3d-dev

Reply via email to