You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mxe/src/mingw-w64-1.patch

175 lines
4.7 KiB

This file is part of MXE. See LICENSE.md for licensing information.
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Mark Brand <mabrand@mabrand.nl>
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 <fenv.h>. */
#undef FLT_ROUNDS
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
From: Jonathan Yong <10walls@gmail.com>
Date: Fri, 22 Dec 2017 13:01:03 +0000
Subject: [PATCH 2/2] dwmapi.def: Regenegerate from Windows 10
Remove ordinals from x86 library too.
Signed-off-by: Jonathan Yong <10walls@gmail.com>
Taken from: https://sourceforge.net/p/mingw-w64/mailman/message/36166386/
diff --git a/mingw-w64-crt/lib32/dwmapi.def b/mingw-w64-crt/lib32/dwmapi.def
index 1111111..2222222 100644
--- a/mingw-w64-crt/lib32/dwmapi.def
+++ b/mingw-w64-crt/lib32/dwmapi.def
@@ -5,47 +5,29 @@
;
LIBRARY "dwmapi.dll"
EXPORTS
-;ord_100@32 @100
-;ord_101@24 @101
+DwmpDxGetWindowSharedSurface@32
+DwmpDxUpdateWindowSharedSurface@24
DwmEnableComposition@4
-;ord_103@0 @103
-;ord_104@12 @104
-;ord_105@0 @105
-;ord_106@8 @106
-;ord_107@4 @107
-;ord_108@4 @108
-;ord_109@8 @109
-;ord_110@0 @110
DwmAttachMilContent@4
-;ord_112@4 @112
-;ord_113@16 @113
-;ord_114@8 @114
-;ord_115@4 @115
DwmDefWindowProc@20
DwmDetachMilContent@4
-;ord_118@8 @118
-;ord_119@8 @119
-;ord_120@8 @120
-;ord_121@8 @121
DwmEnableBlurBehindWindow@8
DwmEnableMMCSS@4
-;ord_124@20 @124
-;ord_125@12 @125
-;ord_126@8 @126
-;ord_127@4 @127
-;ord_128@4 @128
-;ord_129@4 @129
-;ord_130@0 @130
-;ord_131@8 @131
-;ord_132@8 @132
-;ord_133@36 @133
-;ord_134@8 @134
DwmExtendFrameIntoClientArea@8
DwmFlush@0
DwmGetColorizationColor@8
+DwmpDxBindSwapChain@12
+DwmpDxUnbindSwapChain@8
+DwmpDxgiIsThreadDesktopComposited@4
DwmGetCompositionTimingInfo@8
DwmGetGraphicsStreamClient@8
+DwmpDxUpdateWindowRedirectionBltSurface@36
+DwmpRenderFlick@12
+DwmpAllocateSecurityDescriptor@8
+DwmpFreeSecurityDescriptor@4
+DwmpEnableDDASupport@0
DwmGetGraphicsStreamTransformHint@8
+DwmTetherTextContact@20
DwmGetTransportAttributes@12
DwmGetWindowAttribute@16
DwmInvalidateIconicBitmaps@4
@@ -53,10 +35,14 @@ DwmIsCompositionEnabled@4
DwmModifyPreviousDxFrameDuration@12
DwmQueryThumbnailSourceSize@8
DwmRegisterThumbnail@12
+DwmRenderGesture@16
DwmSetDxFrameDuration@8
DwmSetIconicLivePreviewBitmap@16
DwmSetIconicThumbnail@12
DwmSetPresentParameters@8
DwmSetWindowAttribute@16
+DwmShowContact@8
+DwmTetherContact@16
+DwmTransitionOwnedWindow@8
DwmUnregisterThumbnail@4
DwmUpdateThumbnailProperties@8
diff --git a/mingw-w64-crt/lib64/dwmapi.def b/mingw-w64-crt/lib64/dwmapi.def
index 1111111..2222222 100644
--- a/mingw-w64-crt/lib64/dwmapi.def
+++ b/mingw-w64-crt/lib64/dwmapi.def
@@ -1,8 +1,13 @@
;
-; Exports of file dwmapi.dll
+; Definition file of dwmapi.dll
+; Automatic generated by gendef
+; written by Kai Tietz 2008
;
-LIBRARY dwmapi.dll
+LIBRARY "dwmapi.dll"
EXPORTS
+DwmpDxGetWindowSharedSurface
+DwmpDxUpdateWindowSharedSurface
+DwmEnableComposition
DwmAttachMilContent
DwmDefWindowProc
DwmDetachMilContent
@@ -12,18 +17,33 @@ DwmEnableMMCSS
DwmExtendFrameIntoClientArea
DwmFlush
DwmGetColorizationColor
+DwmpDxBindSwapChain
+DwmpDxUnbindSwapChain
+DwmpDxgiIsThreadDesktopComposited
DwmGetCompositionTimingInfo
DwmGetGraphicsStreamClient
+DwmpDxUpdateWindowRedirectionBltSurface
+DwmpRenderFlick
+DwmpAllocateSecurityDescriptor
+DwmpFreeSecurityDescriptor
+DwmpEnableDDASupport
DwmGetGraphicsStreamTransformHint
+DwmTetherTextContact
DwmGetTransportAttributes
DwmGetWindowAttribute
+DwmInvalidateIconicBitmaps
DwmIsCompositionEnabled
DwmModifyPreviousDxFrameDuration
DwmQueryThumbnailSourceSize
DwmRegisterThumbnail
+DwmRenderGesture
DwmSetDxFrameDuration
+DwmSetIconicLivePreviewBitmap
+DwmSetIconicThumbnail
DwmSetPresentParameters
DwmSetWindowAttribute
+DwmShowContact
+DwmTetherContact
+DwmTransitionOwnedWindow
DwmUnregisterThumbnail
DwmUpdateThumbnailProperties
-