libc/newlib/libc
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
..
argz Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
ctype Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
errno Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
iconv Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
include Define the newlib version macros in one place: _newlib_version.h. 2016-02-17 16:04:09 -05:00
locale Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
machine Fix memcpy bug that reads past end of buffer. 2016-01-28 14:08:35 -08:00
misc Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
posix Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
reent Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
search Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
signal Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
stdio printf(3): Handle multibyte decimal point in field size computation 2016-02-08 13:33:17 +01:00
stdio64 Fix compile with GCC 5 -Werror 2016-02-12 10:16:06 -06:00
stdlib Fix compile with GCC 5 -Werror 2016-02-12 10:16:06 -06:00
string Fix compile with GCC 5 -Werror 2016-02-12 10:16:06 -06:00
sys Define the newlib version macros in one place: _newlib_version.h. 2016-02-17 16:04:09 -05:00
syscalls Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
time Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
unix Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
xdr Move duplicated documentation rules to Makefile.shared 2015-11-02 18:02:39 -05:00
Makefile.am 2011-01-05 Ralf Corsepius <ralf.corsepius@rtems.org> 2011-01-05 17:18:16 +00:00
Makefile.in 2012-12-20 Jeff Johnston <jjohnstn@redhat.com> 2012-12-20 21:10:27 +00:00
aclocal.m4 Fix up errors in regenerated files for 2.3.0 release. 2016-01-04 12:57:31 -05:00
configure Fix up errors in regenerated files for 2.3.0 release. 2016-01-04 12:57:31 -05:00
configure.in 2014-07-04 Bin Cheng <bin.cheng@arm.com> 2014-07-04 17:21:45 +00:00
libc.texinfo Fix newlib texinfo source so 'info libc' and 'info libm' work 2015-03-16 15:02:22 +00:00
saber
sys.tex Don't include stdio64 functions in reentrant syscalls menu when not bulding stdio64. 2015-08-03 09:54:33 +01:00