Windows: Workaround missing DWRITE_FONT_WEIGHT value in old MinGW
Fixes #74339.
This commit is contained in:
@ -69,6 +69,11 @@ __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
|
||||
#define WM_POINTERUPDATE 0x0245
|
||||
#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__)
|
||||
// Workaround GCC warning from -Wcast-function-type.
|
||||
#define GetProcAddress (void *)GetProcAddress
|
||||
|
||||
Reference in New Issue
Block a user