From: Michel Pollet Date: Mon, 28 May 2012 09:20:29 +0000 (+0100) Subject: cores: New avr-libc fixes X-Git-Tag: v1.0~111 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=e51bd6752e5c6a95298a16457b2e97150247735f;p=sx%2Fsimavr.git cores: New avr-libc fixes New debian avr-libc has actually deprecated register names, unfortunately the other distros will catchup in 4 years or so, so we still have to reactivate them . Signed-off-by: Michel Pollet --- diff --git a/simavr/cores/sim_core_declare.h b/simavr/cores/sim_core_declare.h index 0a6c83b..9c07612 100644 --- a/simavr/cores/sim_core_declare.h +++ b/simavr/cores/sim_core_declare.h @@ -21,10 +21,16 @@ #ifndef __SIM_CORE_DECLARE_H__ #define __SIM_CORE_DECLARE_H__ +/* we have to declare this, as none of the distro but debian has a modern + * toolchain and avr-libc. This affects a lot of names, like MCUSR etc + */ +#define __AVR_LIBC_DEPRECATED_ENABLE__ + /* * The macros "fake" the ones in the real avrlib */ #define _SFR_IO8(v) ((v)+32) +#define _SFR_IO16(v) ((v)+32) #define _SFR_MEM8(v) (v) #define _BV(v) (v) #define _VECTOR(v) (v)