[En-Nut-Discussion] prog_char type in uromfs.h
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Thu Jul 25 12:56:20 CEST 2013
>>>>> "Thiago" == Thiago A Corrêa <thiago.correa at gmail.com> writes:
Thiago> Hi, I'm having a compile issue in uromfs.h in trunk. The
Thiago> prog_char is being declared in uromfs.h but it's also in
Thiago> WinAVR's avr/pgmspace.h
Thiago> Looking at the logs, Harald removed the definition for
Thiago> prog_char when GCC is older than 4.6 but Uwe added it
Thiago> back. Perhaps it's needed for some platforms but not for others?
Thiago> If I revert Uwe's changes I'm able to build again. How
Thiago> should we properly check for it? Should we #ifdef based on CPU?
http://gcc.gnu.org/onlinedocs/gcc/Named-Address-Spaces.html
shows that the availability of __flash is accompanied with a __FLASH
macro. I have pushed to SVN a patch that uses __FLASH and works for me :-)
Pleasd test.
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
More information about the En-Nut-Discussion
mailing list