Add a mingw-w64 patch

This commit is contained in:
Hugo Beauzée-Luyssen committed 2016-08-04 16:20:17 +02:00
1 parent 1e0a216c46
commit d70ed92ed0
2 files changed
+33

No files matched your search

+3
View File
@@ -75,6 +75,9 @@ RUN cd mingw-w64/mingw-w64-tools/genlib && \
make -j4 && \ make -j4 && \
make install make install
COPY mingw-0004.patch /build/patches/
RUN cd mingw-w64 && git am /build/patches/mingw-0004.patch
RUN cd mingw-w64/mingw-w64-headers && mkdir build && cd build && \ RUN cd mingw-w64/mingw-w64-headers && mkdir build && cd build && \
../configure --host=$TARGET_TUPLE --prefix=$MINGW_PREFIX \ ../configure --host=$TARGET_TUPLE --prefix=$MINGW_PREFIX \
--enable-secure-api && \ --enable-secure-api && \
+30
View File
@@ -0,0 +1,30 @@
From 5592b70cca64935b0d090fe5030b3110ba17068c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Hugo=20Beauz=C3=A9e-Luyssen?= <hugo@beauzee.fr>
Date: Fri, 13 May 2016 15:17:56 +0200
Subject: [PATCH] yvals.h: Don't create a _Bool typedef if a macro already
exists
---
mingw-w64-headers/crt/yvals.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/mingw-w64-headers/crt/yvals.h b/mingw-w64-headers/crt/yvals.h
index 70593c4..98b6921 100644
--- a/mingw-w64-headers/crt/yvals.h
+++ b/mingw-w64-headers/crt/yvals.h
@@ -163,10 +163,12 @@
#define _Restrict __restrict__
#ifdef __cplusplus
+#ifndef _Bool
_STD_BEGIN
typedef bool _Bool;
_STD_END
#endif
+#endif
#define _LONGLONG /* __MINGW_EXTENSION */ __int64
#define _ULONGLONG /* __MINGW_EXTENSION */ unsigned __int64
--
2.8.1