It has been requested every now and then that there be a user-visible
library version number. I'm about to start this with the impending
release of the 1.4 branch, so here are a few questions.
What to put in there?
. __AVR_LIBC_VERSION__ "1.4.0" /* a string */
. __AVR_LIBC_MAJOR__ 1 /* three integers */
. __AVR_LIBC_MINOR__ 4
. __AVR_LIBC_TINY__ 0
or
. __AVR_LIBC_RELEASE__ 0x010400 /* a single integer */
The single integer approach only needs one macro, but it's a bit more
cumbersome to compare e.g. a major version only (but still possible).
The three integer approach requires more complicated preprocessor #if
statements if you e.g. want to do something only for version 1.4.3 and
above.