4ntoine / clang

AVR frontend for the LLVM project
http://clang.llvm.org/
Other
9 stars 1 forks source link

Fix: __progmem__ can't be applied to typedef #7

Closed 4ntoine closed 9 years ago

4ntoine commented 9 years ago
/Applications/App.app//Contents/Resources/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:103:17: note: 
      expanded from macro 'PROGMEM'
#define PROGMEM __ATTR_PROGMEM__
                ^
/Applications/App.app//Contents/Resources/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:89:41: note: 
      expanded from macro '__ATTR_PROGMEM__'
#define __ATTR_PROGMEM__ __attribute__((__progmem__))
                                        ^
/Applications/App.app//Contents/Resources/Java/hardware/tools/avr/avr/include/avr/pgmspace.h:223:33: error: 
      '__progmem__' attribute only applies to functions and global variables
typedef uint64_t  prog_uint64_t PROGMEM;
                                ^