summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Brand <mabrand@mabrand.nl>2010-06-05 11:18:28 (GMT)
committerMark Brand <mabrand@mabrand.nl>2010-06-05 11:18:28 (GMT)
commite0bc8bf10de73c8a21bc4f2b7b38049725d76e5e (patch)
treece7a3261efce145aacc529322a8b7d2d13c5a94a
parentfac1d9619844371e64cae58c5c8be289e49f5d1d (diff)
downloadmxe-e0bc8bf10de73c8a21bc4f2b7b38049725d76e5e.zip
mxe-e0bc8bf10de73c8a21bc4f2b7b38049725d76e5e.tar.gz
mxe-e0bc8bf10de73c8a21bc4f2b7b38049725d76e5e.tar.bz2
fix the float.h problem in packages gcc and mingwrt
-rw-r--r--src/gcc-1-mingw-float.patch17
-rw-r--r--src/mingwrt-1-float.patch18
2 files changed, 35 insertions, 0 deletions
diff --git a/src/gcc-1-mingw-float.patch b/src/gcc-1-mingw-float.patch
new file mode 100644
index 0000000..8bbc2b8
--- /dev/null
+++ b/src/gcc-1-mingw-float.patch
@@ -0,0 +1,17 @@
+This file is part of mingw-cross-env.
+See doc/index.html for further information.
+
+This patch has been taken from:
+http://gcc.gnu.org/ml/gcc-patches/2010-06/msg00387.html
+
+diff -urN a/gcc/ginclude/float.h b/gcc/ginclude/float.h
+--- a/gcc/ginclude/float.h 2009-04-09 17:00:19.000000000 +0200
++++ b/gcc/ginclude/float.h 2010-06-05 12:03:41.887724045 +0200
+@@ -236,3 +236,7 @@
+ #endif /* __STDC_WANT_DEC_FP__ */
+
+ #endif /* _FLOAT_H___ */
++
++#ifdef __MINGW32__
++#include_next<float.h>
++#endif
diff --git a/src/mingwrt-1-float.patch b/src/mingwrt-1-float.patch
new file mode 100644
index 0000000..81ba66a
--- /dev/null
+++ b/src/mingwrt-1-float.patch
@@ -0,0 +1,18 @@
+This file is part of mingw-cross-env.
+See doc/index.html for further information.
+
+This patch has been taken from:
+http://gcc.gnu.org/ml/gcc-patches/2010-06/msg00387.html
+
+diff -urN a/include/float.h b/include/float.h
+--- a/include/float.h 2010-03-07 04:31:41.000000000 +0100
++++ b/include/float.h 2010-06-05 12:29:08.899723741 +0200
+@@ -16,8 +16,6 @@
+ *
+ */
+
+-#include_next<float.h>
+-
+ #ifndef _MINGW_FLOAT_H_
+ #define _MINGW_FLOAT_H_
+