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).