On Tue, 06 Dec 2005 14:37:53 -0500, Joerg Wunsch <[EMAIL PROTECTED]> wrote:

Why not test for

#if __AVR_LIBC_VERSION__ < 10400UL
put old code here
#endif

Any C preprocessor macro that hasn't been defined but is used in a
preprocessor expression as shown above automatically evaluates to 0,
so the above test will work.

Lint would not like it.  In this case there is no issue with that
usage, but I don't like relying on implied evaluations as they can
lead to very subtle bugs.


_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list

Reply via email to