summaryrefslogtreecommitdiff
path: root/gnu/packages/patches/gcc-4.9.3-mingw-gthr-default.patch
diff options
context:
space:
mode:
authorJan Nieuwenhuizen <janneke@gnu.org>2016-04-14 07:35:40 +0200
committerLudovic Courtès <ludo@gnu.org>2016-12-07 10:23:16 +0100
commitcf0ef075c43437f183bc4cb390481e9c9b5a3399 (patch)
tree8a9a8be3713a46ff0185323be30a4af0cb31d419 /gnu/packages/patches/gcc-4.9.3-mingw-gthr-default.patch
parent9747d189e090ec7029351a56ed030acd5e308978 (diff)
downloadguix-patches-cf0ef075c43437f183bc4cb390481e9c9b5a3399.tar
guix-patches-cf0ef075c43437f183bc4cb390481e9c9b5a3399.tar.gz
gnu: Add mingw-w64.
* gnu/packages/patches/gcc-4.9.3-mingw-gthr-default.patch, gnu/packages/patches/mingw-w64-5.0rc2-gcc-4.9.3.patch, gnu/packages/mingw.scm: New files. * gnu/local.mk (dist_patch_DATA): Add the patches. (GNU_SYSTEM_MODULES): Add mingw.scm.
Diffstat (limited to 'gnu/packages/patches/gcc-4.9.3-mingw-gthr-default.patch')
-rw-r--r--gnu/packages/patches/gcc-4.9.3-mingw-gthr-default.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/gnu/packages/patches/gcc-4.9.3-mingw-gthr-default.patch b/gnu/packages/patches/gcc-4.9.3-mingw-gthr-default.patch
new file mode 100644
index 0000000000..0ea008a7cb
--- /dev/null
+++ b/gnu/packages/patches/gcc-4.9.3-mingw-gthr-default.patch
@@ -0,0 +1,11 @@
+--- a/libgcc/config/i386/gthr-win32.h 2016-03-30 07:45:33.388684463 +0200
++++ b/libgcc/config/i386/gthr-win32.h 2016-03-30 15:51:24.123896436 +0200
+@@ -30,7 +30,7 @@
+
+ /* Make sure CONST_CAST2 (origin in system.h) is declared. */
+ #ifndef CONST_CAST2
+-#define CONST_CAST2(TOTYPE,FROMTYPE,X) ((__extension__(union {FROMTYPE _q; TOTYPE _nq;})(X))._nq)
++#define CONST_CAST2(TOTYPE,FROMTYPE,X) ((TOTYPE)X)
+ #endif
+
+ /* Windows32 threads specific definitions. The windows32 threading model