diff options
author | Jeff Johnston <jjohnstn@redhat.com> | 2014-09-17 22:20:16 +0000 |
---|---|---|
committer | Jeff Johnston <jjohnstn@redhat.com> | 2014-09-17 22:20:16 +0000 |
commit | 99eb60455b816c2e786e8444aa2d288aae37f387 (patch) | |
tree | 44eefa0ed5ce48cf9097ef2056c803b16159c53a | |
parent | ad9ed96b6b1cefb34474948bde0b1635155ba107 (diff) | |
download | cygnal-99eb60455b816c2e786e8444aa2d288aae37f387.tar.gz cygnal-99eb60455b816c2e786e8444aa2d288aae37f387.tar.bz2 cygnal-99eb60455b816c2e786e8444aa2d288aae37f387.zip |
2014-09-17 Jeff Johnston <jjohnstn@redhat.com>
* libc/include/sys/features.h: Add __NEWLIB__ and
__NEWLIB_MINOR__ macros.
-rw-r--r-- | newlib/ChangeLog | 5 | ||||
-rw-r--r-- | newlib/libc/include/sys/features.h | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 7ef574bad..a1576238b 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,8 @@ +2014-09-17 Jeff Johnston <jjohnstn@redhat.com> + + * libc/include/sys/features.h: Add __NEWLIB__ and + __NEWLIB_MINOR__ macros. + 2014-09-17 Joel Sherrill <joel.sherrill@oarcorp.com> Thomas Uhle <thomas.uhle@eas.iis.fraunhofer.de> diff --git a/newlib/libc/include/sys/features.h b/newlib/libc/include/sys/features.h index a3ba513bf..1d90921af 100644 --- a/newlib/libc/include/sys/features.h +++ b/newlib/libc/include/sys/features.h @@ -25,6 +25,12 @@ extern "C" { #endif +/* Macros to determine that newlib is being used. Put in this header to + * be similar to where glibc stores its version of these macros. + */ +#define __NEWLIB__ 2 +#define __NEWLIB_MINOR__ 1 + /* Macro to test version of GCC. Returns 0 for non-GCC or too old GCC. */ #ifndef __GNUC_PREREQ # if defined __GNUC__ && defined __GNUC_MINOR__ |