We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd81b66 commit 5aeb872Copy full SHA for 5aeb872
src/_tkagg.cpp
@@ -53,6 +53,11 @@ static inline PyObject *PyErr_SetFromWindowsErr(int ierr) {
53
#include <psapi.h> // Must be linked with 'psapi' library
54
#define dlsym GetProcAddress
55
#define UNUSED_ON_NON_WINDOWS(x) x
56
+// Check for old headers that do not defined HiDPI functions and constants.
57
+#if defined(__MINGW64_VERSION_MAJOR)
58
+static_assert(__MINGW64_VERSION_MAJOR >= 6,
59
+ "mingw-w64-x86_64-headers >= 6 are required when compiling with MinGW");
60
+#endif
61
#else
62
#include <dlfcn.h>
63
#define UNUSED_ON_NON_WINDOWS Py_UNUSED
0 commit comments