| [ CnUnix ] in KIDS 글 쓴 이(By): justice (sleeper) 날 짜 (Date): 1996년05월13일(월) 12시39분30초 KDT 제 목(Title): [re] gcc에서 ANSI로 gcc -ansi <filename> 라고 하면 될듯... -------------------------------------- $man gcc LANGUAGE OPTIONS The following options control the dialect of C that the com- piler accepts: -ansi Support all ANSI standard C programs. This turns off certain features of GNU C that are in- compatible with ANSI C, such as the asm, inline and typeof keywords, and predefined macros such as unix and vax that identify the type of system you are using. It also enables the undesirable and rarely used ANSI tri- graph feature, and disallows `$' as part of identif- iers. The alternate keywords __asm__, __extension__, __in- line__ and __typeof__ continue to work despite `-ansi'. You would not want to use them in an ANSI C program, of course, but it is useful to put them in header files that might be included in compilations done with `-ansi'. Alternate predefined macros such as __unix__ and __vax__ are also available, with or without `-ansi'. The `-ansi' option does not cause non-ANSI programs to be rejected gratuitously. For that, `-pedantic' is re- quired in addition to `-ansi'. The preprocessor predefines a macro __STRICT_ANSI__ when you use the `-ansi' option. Some header files may notice this macro and refrain from declaring certain functions or defining certain macros that the ANSI standard doesn't call for; this is to avoid interfering with any programs that might use these names for other things. |