Skip to content
Commit 9f3f089e authored by Emmanuele Bassi's avatar Emmanuele Bassi 👣
Browse files

Use escaped version of typeof



When compiling code that includes gobject.h using GCC with the ISO
standard, the `typeof` keyword is disabled, as it's a GCC extension.

The GCC documentation recommends:

> If you are writing a header file that must work when included in
> ISO C programs, write __typeof__ instead of typeof.

Which is precisely what we're going to do.

Signed-off-by: default avatarEmmanuele Bassi <ebassi@gnome.org>
Reviewed-by: default avatarPhilip Withnall <withnall@endlessm.com>

https://bugzilla.gnome.org/show_bug.cgi?id=790697
parent 3fae39a5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment