changeset 1039:5e7cbb62c57a

fix the float.h problem in packages gcc and mingwrt
author Mark Brand <mabrand@mabrand.nl>
date Sat, 05 Jun 2010 13:18:28 +0200
parents eddf7d0830e6
children 0cf0c907b475
files src/gcc-1-mingw-float.patch src/mingwrt-1-float.patch
diffstat 2 files changed, 35 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/gcc-1-mingw-float.patch	Sat Jun 05 13:18:28 2010 +0200
@@ -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
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/mingwrt-1-float.patch	Sat Jun 05 13:18:28 2010 +0200
@@ -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_
+