[En-Nut-Discussion] Patch for SuSE 10.0 and gcc402

Matthias Ringwald mringwal at inf.ethz.ch
Fri Nov 25 15:40:31 CET 2005


Hi Torben,

  I was just following Joerg Wunsch's advice..

On 25.11.2005, at 12:52, Torben Mikael Hansen wrote:

> 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?
Yes

> Shouldn't it then rather be
No

:)

on my gcc 4.x, an undefined macro is evaluated to zero in a comparison

#if QQQ < 5
#warning "QQQ < 5"
#else
#warning "QQQ not< 5"
#endif

prints the QQQ < 5 warning.

Harald, what's ICCAVR doing in this case?

matthias



More information about the En-Nut-Discussion mailing list