projects
/
bertos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
17f6b83
)
Define PROGMEM on AVR only when not including pgmspace.h.
author
bernie
<bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Sat, 8 Jan 2005 08:49:39 +0000
(08:49 +0000)
committer
bernie
<bernie@38d2e660-2303-0410-9eaa-f027e97ec537>
Sat, 8 Jan 2005 08:49:39 +0000
(08:49 +0000)
git-svn-id: https://src.develer.com/svnoss/bertos/trunk@330
38d2e660
-2303-0410-9eaa-
f027e97ec537
compiler.h
patch
|
blob
|
history
diff --git
a/compiler.h
b/compiler.h
index 3eb3f6a6ea4a76c28dcae08714d616adaab35444..729888c2348d9d61966cfb7e31b9b62f64c10b96 100755
(executable)
--- 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