aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--newlib/ChangeLog.64bit5
-rw-r--r--newlib/libc/include/sys/features.h12
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