diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2013-03-27 11:15:02 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2013-03-27 11:15:02 +0000 |
commit | 0cf816b2ba921d17c1bfc17d88b68fe4e1e14d29 (patch) | |
tree | ad5cf9bb781add8d5807b6283c16281f95e618a6 | |
parent | cc5913f6d483db66eb284a48d8a6655ed9851432 (diff) | |
download | newlib-0cf816b2ba921d17c1bfc17d88b68fe4e1e14d29.zip newlib-0cf816b2ba921d17c1bfc17d88b68fe4e1e14d29.tar.gz newlib-0cf816b2ba921d17c1bfc17d88b68fe4e1e14d29.tar.bz2 |
* libc/include/sys/features.h: Redefine compilation environment
definitions for Cygwin to cover 64 bit Cygwin.
-rw-r--r-- | newlib/ChangeLog.64bit | 5 | ||||
-rw-r--r-- | newlib/libc/include/sys/features.h | 12 |
2 files changed, 14 insertions, 3 deletions
diff --git a/newlib/ChangeLog.64bit b/newlib/ChangeLog.64bit index 9066a57..113f5d0 100644 --- a/newlib/ChangeLog.64bit +++ b/newlib/ChangeLog.64bit @@ -1,3 +1,8 @@ +2013-03-27 Corinna Vinschen <vinschen@redhat.com> + + * libc/include/sys/features.h: Redefine compilation environment + definitions for Cygwin to cover 64 bit Cygwin. + 2013-01-29 Corinna Vinschen <vinschen@redhat.com> * libc/include/machine/setjmp.h: Revert definition of _JBTYPE and _JBLEN diff --git a/newlib/libc/include/sys/features.h b/newlib/libc/include/sys/features.h index f150706..8d8d403 100644 --- a/newlib/libc/include/sys/features.h +++ b/newlib/libc/include/sys/features.h @@ -171,12 +171,18 @@ extern "C" { #define _POSIX2_SW_DEV 200112L #define _POSIX2_UPE 200112L #define _POSIX_V6_ILP32_OFF32 -1 -#define _XBS5_ILP32_OFF32 _POSIX_V6_ILP32_OFF32 +#ifdef __LP64__ +#define _POSIX_V6_ILP32_OFFBIG -1 +#define _POSIX_V6_LP64_OFF64 1 +#define _POSIX_V6_LPBIG_OFFBIG 1 +#else #define _POSIX_V6_ILP32_OFFBIG 1 -#define _XBS5_ILP32_OFFBIG _POSIX_V6_ILP32_OFFBIG #define _POSIX_V6_LP64_OFF64 -1 -#define _XBS5_LP64_OFF64 _POSIX_V6_LP64_OFF64 #define _POSIX_V6_LPBIG_OFFBIG -1 +#endif +#define _XBS5_ILP32_OFF32 _POSIX_V6_ILP32_OFF32 +#define _XBS5_ILP32_OFFBIG _POSIX_V6_ILP32_OFFBIG +#define _XBS5_LP64_OFF64 _POSIX_V6_LP64_OFF64 #define _XBS5_LPBIG_OFFBIG _POSIX_V6_LPBIG_OFFBIG #define _XOPEN_CRYPT 1 #define _XOPEN_ENH_I18N 1 |