[En-Nut-Discussion] Patch for SuSE 10.0 and gcc402
Torben Mikael Hansen
torben at linhard.dk
Fri Nov 25 12:52:08 CET 2005
>
> Torben, can you verifty, that your system compiles (without the avr/
> version include):
>
> --- nut/include/arch/avr/gcc.h 2005-11-24 23:47:43.000000000 +0100
> +++ nut_wk/include/arch/avr/gcc.h 2005-11-24 23:42:58.000000000 +0100
> @@ -53,7 +53,9 @@
>
> #include <avr/io.h>
> #include <avr/interrupt.h>
> -#include <avr/signal.h>
> +#if __AVR_LIBC_VERSION__ < 10400UL
> + #include <avr/signal.h>
> +#endif
> #include <avr/eeprom.h>
> #include <avr/pgmspace.h>
> #include <avr/sleep.h>
>
>
I will check it later, but if the avr/version.h is not available in older
versions won't the __AVR_LIBC_VERSION__ be undefined?
Shouldn't it then rather be
#include <avr/io.h>
#ifdef __AVR_LIBC_VERSION__
#if __AVR_LIBC_VERSION__ < 10400UL
#include <avr/signal.h>
#endif
#else
#include <avr/signal.h>
#endif
Regards,
Torben
More information about the En-Nut-Discussion
mailing list