acadia-newlib/newlib/libc/include/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
..
_default_fcntl.h * libc/include/sys/_default_fcntl.h: Move all Cygwin-specific open 2014-11-25 11:53:00 +00:00
_intsup.h Extend _intsup.h to support 16-bit and 20-bit pointers. 2015-10-19 14:48:30 +01:00
_sigset.h FreeBSD compatibility for <sys/select.h> 2015-12-14 15:39:44 +01:00
_stdint.h Add <sys/_stdint.h> for FreeBSD compatibility 2015-04-23 21:57:10 +02:00
_timespec.h Add and use latest <sys/timespec.h> from FreeBSD 2015-03-11 15:45:38 +01:00
_timeval.h Merge parts of <sys/time.h> from FreeBSD 2015-03-13 13:17:34 +01:00
_types.h 2013-10-10 Sebastian Huber <sebastian.huber@embedded-brains.de> 2013-10-15 17:38:32 +00:00
cdefs.h Synchronize with FreeBSD. 2015-10-13 17:50:30 -04:00
config.h Improve check for int32_t being long or int 2015-04-29 13:07:17 +02:00
custom_file.h
dir.h
dirent.h
errno.h * libc/include/sys/errno.h: Fix comments. 2014-07-14 13:40:17 +00:00
fcntl.h
features.h Define the newlib version macros in one place: _newlib_version.h. 2016-02-17 16:04:09 -05:00
file.h
iconvnls.h
lock.h
param.h Move fd_stuff from sys/types.h to sys/select.h 2015-12-07 16:28:22 +01:00
queue.h * libc/sys/rtems/sys/queue.h: Delete file. 2013-04-16 10:25:16 +00:00
reent.h Add _REENT_INIT_PTR_ZEROED() 2015-12-14 15:44:28 +01:00
resource.h 2014-11-23 Joel Sherrill <joel.sherrill@oarcorp.com> 2014-11-24 14:12:32 +00:00
sched.h Add and use latest <sys/timespec.h> from FreeBSD 2015-03-11 15:45:38 +01:00
select.h FreeBSD compatibility for <sys/select.h> 2015-12-14 15:39:44 +01:00
signal.h FreeBSD compatibility for <sys/select.h> 2015-12-14 15:39:44 +01:00
stat.h Add and use latest <sys/timespec.h> from FreeBSD 2015-03-11 15:45:38 +01:00
stdio.h
string.h
syslimits.h
time.h FreeBSD compatibility for <sys/select.h> 2015-12-14 15:39:44 +01:00
timeb.h
times.h
timespec.h Add and use latest <sys/timespec.h> from FreeBSD 2015-03-11 15:45:38 +01:00
tree.h Import <sys/tree.h> from FreeBSD 2015-04-23 21:57:06 +02:00
types.h POSIX barrier implementation, take 3 2016-02-13 16:03:15 +01:00
unistd.h Allow sysconf to return CPU cache information 2015-08-29 09:16:47 +02:00
utime.h
wait.h Fix comment in sys/wait.h 2015-05-28 16:40:43 +02:00