On Sun, 29 Feb 2004, Anton Altaparmakov wrote:
>
> did the change. For the user space code it is very different. We have
> ./configure which detects what compiler you are using and tells you to get
> lost if your compiler doesn't support -fms-extensions. And that's fine
> with me. Unnamed structs and unions are damn nice C feature and I can't
No they are C++ features (check out the specs). It's a gcc bug it allows
them in C files. Even gcc warns during compilation ... well, maybe yours
doesn't:
cc1: warning: ignoring command line option '-fms-extensions'
cc1: warning: (it is valid for C++ but not the selected language)
And I can easily imagine it will be disabled in the future for C files.
> you have a problem with the unnamed structs and unions considering your
> gcc should support them... Could you explain?
Seems John's compiler is just _right_.
Szaka
|