From: bernie Date: Mon, 20 Sep 2004 03:30:27 +0000 (+0000) Subject: Remove vsprintf_P() proto, no longer needed with avr-libc 1.0.4. X-Git-Tag: 1.0.0~1025 X-Git-Url: https://codewiz.org/gitweb?a=commitdiff_plain;h=78af5b91002a94c63e33d1c6ccb6017b9362cb09;p=bertos.git Remove vsprintf_P() proto, no longer needed with avr-libc 1.0.4. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@216 38d2e660-2303-0410-9eaa-f027e97ec537 --- 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