[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] gcc



Vincent Rivière <vincent.riviere@freesbee.fr> writes:

> Le 02/02/2010 22:53, Helmut Karlowski a écrit :
>> That's nice. I compiled the current kernel with gcc 2.95 and got
>> compiler-errors on some statements that where new to me.
>>
>> For example:
>>
>> {
>> union{ char *s, long l] u; u.s = x;
>> long z;
>>
>> ...
>> }
>>
>> That's not C as I know it. I thought gcc 2.95 is C99.
>
> There are 2 typos in your quote.
>
> This is an unnamed union, it is a Microsoft extension supported by GCC.

Barring typos this is a perfectly standard declaration of a variable
with union type.  The extension you are thinking of has nothing to do
with this.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."