Next: C++ Extensions,Previous: C Implementation,Up: Top
GNU C provides several language features not found in ISO standard C. (The-pedantic option directs GCC to print a warning message ifany of these features is used.) To test for the availability of thesefeatures in conditional compilation, check for a predefined macro__GNUC__, which is always defined under GCC.
These extensions are available in C and Objective-C. Most of them arealso available in C++. SeeExtensions to the C++ Language, for extensions that applyonly to C++.
Some features that are in ISO C99 but not C89 or C++ are also, asextensions, accepted by GCC in C89 mode and in C++.
typeof: referring to the type of an expression.long long int.void-pointers and function pointers.__const__,__asm__, etc., for header files.enum foo;, with details to follow.offsetof.