From: bernie Date: Wed, 8 Dec 2004 09:43:21 +0000 (+0000) Subject: Metrowerks supports variadic macros. X-Git-Tag: 1.0.0~930 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=43bbf2d226d7313b8fd075c07f1d2a50da476e6b;p=bertos.git Metrowerks supports variadic macros. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@311 38d2e660-2303-0410-9eaa-f027e97ec537 --- diff --git a/compiler.h b/compiler.h index ba98f5f9..63847328 100755 --- a/compiler.h +++ b/compiler.h @@ -14,6 +14,9 @@ /*#* *#* $Log$ + *#* Revision 1.37 2004/12/08 09:43:21 bernie + *#* Metrowerks supports variadic macros. + *#* *#* Revision 1.36 2004/12/08 08:55:54 bernie *#* Rename sigset_t to sigmask_t and time_t to mtime_t, to avoid conflicts with POSIX definitions. *#* @@ -117,6 +120,11 @@ #define GNUC_PREREQ(maj, min) 0 #endif +/* Some CW versions do not allow enabling C99 from the settings panel. */ +#if defined(__MWERKS__) + #pragma c99 on +#endif + #if defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L) #define COMPILER_C99 1 #else @@ -253,6 +261,7 @@ #elif defined(__MWERKS__) && CPU_DSP56K /* Compiler features */ + #define COMPILER_VARIADIC_MACROS 1 #define COMPILER_TYPEOF 1 #define COMPILER_STATEMENT_EXPRESSIONS 1