From 2eaa97408148a89f59b3ee75a0c43907b9e5fc75 Mon Sep 17 00:00:00 2001 From: bernie Date: Sat, 8 Jan 2005 08:49:39 +0000 Subject: [PATCH] Define PROGMEM on AVR only when not including pgmspace.h. git-svn-id: https://src.develer.com/svnoss/bertos/trunk@330 38d2e660-2303-0410-9eaa-f027e97ec537 --- compiler.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/compiler.h b/compiler.h index 3eb3f6a6..729888c2 100755 --- a/compiler.h +++ b/compiler.h @@ -14,6 +14,9 @@ /*#* *#* $Log$ + *#* Revision 1.39 2005/01/08 08:49:39 bernie + *#* Define PROGMEM on AVR only when not including pgmspace.h. + *#* *#* Revision 1.38 2004/12/31 16:41:52 bernie *#* PROGMEM: Define to nothing for non-Harvard processors. *#* @@ -248,8 +251,10 @@ #define PGM_READ_CHAR(s) pgm_read_byte(s) #define PGM_FUNC(x) x ## _P #define PGM_ATTR PROGMEM + #else + /* We still need this for prototypes */ + #define PROGMEM __attribute__((__progmem__)) #endif - #define PROGMEM __attribute__((__progmem__)) #endif -- 2.25.1