libc/newlib/libc/sys
Pieter du Preez 264b817b8e Define the newlib version macros in one place: _newlib_version.h.
Currently, the newlib version information needs to be updated in two places:
 - newlib/acinclude.m4
 - newlib/libc/include/sys/features.h

The goal of this patch is to:
 - supply a single location for defining the newlib version
   information: newlib/acinclude.m4
 - define __NEWLIB__, __NEWLIB_MINOR__ and __NEWLIB_PATCHLEVEL__
   This is in line with what gcc does for its version macros. See:
   https://gcc.gnu.org/onlinedocs/cpp/Common-Predefined-Macros.html

This patch moves the definition of the _NEWLIB_VERSION, __NEWLIB__
and __NEWLIB_MINOR__ macros from newlib/libc/include/sys/features.h,
to the newly generated newlib/_newlib_version.h file. Additionally,
the __NEWLIB_PATCHLEVEL__ macro was created, for completeness.

In order to stay backwards compatible, newlib/_newlib_version.h gets
included by newlib/newlib.h and newlib/libc/include/sys/features.h.

Note: This patch does _not_ include the modifications to the following
files, as these should all be generated any way.
      *Makefile.in,
      *aclocal.m4,
      *configure
      stamp-* files

Signed-off-by: Pieter du Preez <pdupreez@gmail.com>
2016-02-17 16:04:09 -05:00
..
a29khif Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
arm Make macro checks ARMv8-M baseline proof 2016-01-28 11:26:37 +01:00
d10v Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
decstation Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
epiphany Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
h8300hms Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
h8500hms Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
linux Define the newlib version macros in one place: _newlib_version.h. 2016-02-17 16:04:09 -05:00
m88kbug Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
mmixware Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
netware Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
or1k Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
rdos Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
rtems Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
sh Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
sparc64 Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
sun4 Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
sysmec Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
sysnec810 Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
sysnecv850 Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
sysvi386 Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
sysvnecv70 Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
tic80 Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
tirtos Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
w65 Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
z8ksim Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
Makefile.am * ltmain.sh: Update from GCC. 2007-05-24 17:33:42 +00:00
Makefile.in 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
aclocal.m4 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
configure Regenerate files for newlib 2.3.0. 2015-12-21 21:32:11 -05:00
configure.in Remove obsolete ARC system 2015-11-12 14:03:05 +01:00