Windows: Workaround missing DWRITE_FONT_WEIGHT value in old MinGW
Fixes #74339.
This commit is contained in:
parent
5dccc940e7
commit
b7ecb9584a
2 changed files with 6 additions and 1 deletions
|
@ -645,7 +645,7 @@ if selected_platform in platform_list:
|
||||||
print(
|
print(
|
||||||
"Detected mingw version is not using posix threads. Only posix "
|
"Detected mingw version is not using posix threads. Only posix "
|
||||||
"version of mingw is supported. "
|
"version of mingw is supported. "
|
||||||
'Use "update-alternatives --config <platform>-w64-mingw32-[gcc|g++]" '
|
'Use "update-alternatives --config x86_64-w64-mingw32-g++" '
|
||||||
"to switch to posix threads."
|
"to switch to posix threads."
|
||||||
)
|
)
|
||||||
Exit(255)
|
Exit(255)
|
||||||
|
|
|
@ -69,6 +69,11 @@ __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
|
||||||
#define WM_POINTERUPDATE 0x0245
|
#define WM_POINTERUPDATE 0x0245
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// Missing in MinGW headers before 8.0.
|
||||||
|
#ifndef DWRITE_FONT_WEIGHT_SEMI_LIGHT
|
||||||
|
#define DWRITE_FONT_WEIGHT_SEMI_LIGHT (DWRITE_FONT_WEIGHT)350
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__GNUC__)
|
#if defined(__GNUC__)
|
||||||
// Workaround GCC warning from -Wcast-function-type.
|
// Workaround GCC warning from -Wcast-function-type.
|
||||||
#define GetProcAddress (void *)GetProcAddress
|
#define GetProcAddress (void *)GetProcAddress
|
||||||
|
|
Loading…
Reference in a new issue