Am 10.09.22 um 20:44 schrieb Richard Hodges:
On 9/10/22 12:32 PM, Benedikt Freisen wrote:
Hi!
Silly question: Does anything speak against using the predefined
__SDCCCALL macro that -- if present -- specifies the ABI version?
Sorry, I accidentally replied to the sender and not the list.
I just tried this, and get an error:
sdcc -mstm8 -DSTM8103 -c lib_max7219.c
lib_max7219.c:177: warning 196: pointer target lost const qualifier
lib_max7219.c:453: error 20: Undefined identifier '__SDCCCALL'
*** Error code 1
I guess __SDCCCALL is not in 4.0? If not, then I will still have to
define something in the header file.
Thanks,
-Richard
Something like
#ifndef __SDCCCALL
#define __SDCCCALL 0
#endif
should be fully sufficient to cover earlier compiler versions.
Greetings,
Benedikt
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user