Re: restrict vs. __restrict__ (gcc 4.8)

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

 



On 17 July 2017 at 16:09, Ian Pilcher wrote:
> On 07/17/2017 09:23 AM, Jonathan Wakely wrote:
>>
>> Can't you use -std=gnu99 then?
>
>
> Works like a charm.  Thanks!

The default for gcc 4.8 is -std=gnu89 which is why you can use GNU
extensions like typeof.

If you want C99 with GNU extensions then use -std=gnu99, because
-std=c99 changes two things: it makes the base standard C99 but it
also disables GNU extensions.

(Alternatively use __typeof__ for the extension).



[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux