There was an error while loading. Please reload this page.
1 parent e5f9206 commit e9b4b2fCopy full SHA for e9b4b2f
1 file changed
src/pl-nt.c
@@ -36,12 +36,18 @@
36
37
#ifdef __WINDOWS__
38
#undef _WIN32_WINNT
39
-#define _WIN32_WINNT 0x0A00 /* PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE */
+#define _WIN32_WINNT 0x0A00 /* Windows 10 */
40
+#undef NTDDI_VERSION /* Windows 10 1809: pseudo console. */
41
+#define NTDDI_VERSION 0x0A000006 /* PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE */
42
#define SWIPL_WINDOWS_NATIVE_ACCESS 1
43
#include <winsock2.h> /* Needed on VC8 */
44
#include <windows.h>
45
#include <psapi.h>
46
47
+#ifndef PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE /* older SDK */
48
+#define PROC_THREAD_ATTRIBUTE_PSEUDOCONSOLE 0x00020016
49
+#endif
50
+
51
#ifdef __MINGW32__
52
#ifndef _WIN32_IE
53
#define _WIN32_IE 0x0400
0 commit comments