X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=compiler.h;h=b7c78f11d59016eb973994a928890027d53db719;hb=78af5b91002a94c63e33d1c6ccb6017b9362cb09;hp=e27959c7d76090a994e1cfeff16180ae33e353bc;hpb=374f1e0d9aec91280946088b6c6c2f12af849734;p=bertos.git diff --git a/compiler.h b/compiler.h index e27959c7..b7c78f11 100755 --- a/compiler.h +++ b/compiler.h @@ -6,15 +6,17 @@ * This file is part of DevLib - See devlib/README for information. * --> * - * \version $Id$ + * \brief Additional support macros for compiler independance * + * \version $Id$ * \author Bernardo Innocenti - * - * \brief Additional support macros for compiler independance */ /*#* *#* $Log$ + *#* Revision 1.23 2004/09/20 03:30:27 bernie + *#* Remove vsprintf_P() proto, no longer needed with avr-libc 1.0.4. + *#* *#* Revision 1.22 2004/09/14 21:03:04 bernie *#* PURE_FUNC, CONST_FUNC, MUST_CHECK: New function attributes; LIKELY()/UNLIKELY(): Fix for non-integral expressions. *#* @@ -184,16 +186,11 @@ #include #include - /* Missing printf-family functions in avr-libc/stdio.h */ - #include - #include - int vsprintf_P(char *buf, const char * PROGMEM fmt, va_list ap); - /* Support for harvard architectures */ #ifdef _PROGMEM #define PGM_READ_CHAR(s) pgm_read_byte(s) #define PGM_FUNC(x) x ## _P - #define PGM_ATTR PROGMEM + #define PGM_ATTR PROGMEM #endif #endif @@ -280,9 +277,11 @@ /* Support for hybrid C/C++ applications. */ #ifdef __cplusplus + #define EXTERN_C extern "C" #define EXTERN_C_BEGIN extern "C" { #define EXTERN_C_END } #else + #define EXTERN_C extern #define EXTERN_C_BEGIN /* nothing */ #define EXTERN_C_END /* nothing */ #endif