Whole document tree
4.36 Alternate Keywords
The option `-traditional' disables certain keywords; `-ansi'
disables certain others. This causes trouble when you want to use GNU C
extensions, or ANSI C features, in a general-purpose header file that
should be usable by all programs, including ANSI C programs and traditional
ones. The keywords
The way to solve these problems is to put `__' at the beginning and
end of each problematical keyword. For example, use Other C compilers won't accept these alternative keywords; if you want to compile with another compiler, you can define the alternate keywords as macros to replace them with the customary keywords. It looks like this:
`-pedantic' causes warnings for many GNU C extensions. You can
prevent such warnings within one expression by writing
This document was generated by root on January, 30 2002 using texi2html |