From 8e8492baed11b52ffacaaa05c798a2cf1b834df1 Mon Sep 17 00:00:00 2001 From: GH Cao Date: Tue, 4 Feb 2020 22:08:05 +0800 Subject: [PATCH] win: fix declaration of SetCurrentProcessExplicitAppUserModelID --- src/win/Makefile.mingw | 2 +- src/win/Makefile_ndr.mingw | 2 +- src/win/win.c | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/win/Makefile.mingw b/src/win/Makefile.mingw index 0e2287be5..1bccbeaa8 100644 --- a/src/win/Makefile.mingw +++ b/src/win/Makefile.mingw @@ -729,7 +729,7 @@ endif ifneq ($(WX), n) LIBS += $(WX_LIBS) -lm endif -LIBS += -lpng -lz -lwsock32 -liphlpapi -ldinput8 -lSDL2 -limm32 -lhid -lsetupapi -loleaut32 -lversion -lwinmm -static -lstdc++ +LIBS += -lpng -lz -lwsock32 -lshell32 -liphlpapi -ldinput8 -lSDL2 -limm32 -lhid -lsetupapi -loleaut32 -lversion -lwinmm -static -lstdc++ ifneq ($(X64), y) LIBS += -Wl,--large-address-aware endif diff --git a/src/win/Makefile_ndr.mingw b/src/win/Makefile_ndr.mingw index 62713f351..94faccebd 100644 --- a/src/win/Makefile_ndr.mingw +++ b/src/win/Makefile_ndr.mingw @@ -735,7 +735,7 @@ endif ifneq ($(WX), n) LIBS += $(WX_LIBS) -lm endif -LIBS += -lpng -lz -lwsock32 -liphlpapi -ldinput8 -lSDL2 -limm32 -lhid -lsetupapi -loleaut32 -lversion -lwinmm -static -lstdc++ +LIBS += -lpng -lz -lwsock32 -lshell32 -liphlpapi -ldinput8 -lSDL2 -limm32 -lhid -lsetupapi -loleaut32 -lversion -lwinmm -static -lstdc++ ifneq ($(X64), y) LIBS += -Wl,--large-address-aware endif diff --git a/src/win/win.c b/src/win/win.c index cfbdab264..1e04d4bb6 100644 --- a/src/win/win.c +++ b/src/win/win.c @@ -19,8 +19,10 @@ * Copyright 2017-2019 Fred N. van Kempen. */ #define UNICODE +#define NTDDI_VERSION 0x06010000 #include #include +#include #include #include #include