This file is part of MXE. See LICENSE.md for licensing information. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Mark Brand Date: Sun, 29 Mar 2015 14:36:38 +0200 Subject: [PATCH 1/2] workaround for -isystem flag messing up include order https://bugzilla.redhat.com/show_bug.cgi?id=843436 diff --git a/mingw-w64-headers/crt/float.h b/mingw-w64-headers/crt/float.h index 1111111..2222222 100644 --- a/mingw-w64-headers/crt/float.h +++ b/mingw-w64-headers/crt/float.h @@ -114,6 +114,15 @@ #define DBL_MAX_10_EXP __DBL_MAX_10_EXP__ #define LDBL_MAX_10_EXP __LDBL_MAX_10_EXP__ + /* The difference between 1 and the least value greater than 1 that is + representable in the given floating point type, b**1-p. */ + #undef FLT_EPSILON + #undef DBL_EPSILON + #undef LDBL_EPSILON + #define FLT_EPSILON __FLT_EPSILON__ + #define DBL_EPSILON __DBL_EPSILON__ + #define LDBL_EPSILON __LDBL_EPSILON__ + /* Addition rounds to 0: zero, 1: nearest, 2: +inf, 3: -inf, -1: unknown. */ /* ??? This is supposed to change with calls to fesetround in . */ #undef FLT_ROUNDS From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Mateusz Date: Mon, 22 Jan 2018 20:58:48 +0100 Subject: [PATCH 2/2] intrin-impl.h: do not define _xgetbv for GCC 8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit GCC 8 from r248028 has defined function _xgetbv and we should avoid double definition of this function. Signed-off-by: Mateusz Brzostek Signed-off-by: Martin Storsjö diff --git a/mingw-w64-headers/include/psdk_inc/intrin-impl.h b/mingw-w64-headers/include/psdk_inc/intrin-impl.h index 1111111..2222222 100644 --- a/mingw-w64-headers/include/psdk_inc/intrin-impl.h +++ b/mingw-w64-headers/include/psdk_inc/intrin-impl.h @@ -1405,6 +1405,7 @@ __buildmov(__movsd, unsigned __LONG32, "d") #define __INTRINSIC_DEFINED___movsd #endif /* __INTRINSIC_PROLOG */ +#if !defined(__GNUC__) || __GNUC__ < 8 /* GCC 8 has already defined _xgetbv */ /* NOTE: This should be in immintrin.h */ #if __INTRINSIC_PROLOG(_xgetbv) unsigned __int64 _xgetbv(unsigned int); @@ -1426,6 +1427,7 @@ unsigned __int64 _xgetbv(unsigned int index) } #define __INTRINSIC_DEFINED__xgetbv #endif /* __INTRINSIC_PROLOG */ +#endif /* __GNUC__ < 8 */ #endif /* defined(__x86_64__) || defined(_AMD64_) || defined(__i386__) || defined(_X86_) */