From 198209436968293c2a563035c678aba5743098be Mon Sep 17 00:00:00 2001 From: icex2 Date: Fri, 21 Aug 2020 14:34:22 +0200 Subject: [PATCH] inject: Fix windows psapi mess by explicitly defining version Otherwise, the compiler does not link the correct version of that API. See the requirements section at the bottom of the page here: https://docs.microsoft.com/en-us/windows/win32/api/psapi/nf-psapi-getmodulebasenamea --- GNUmakefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index c7e36c4..8cc1cc4 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -26,7 +26,7 @@ toolchain_64 := x86_64-w64-mingw32- gitrev := $(shell git rev-parse HEAD) cppflags := -I src -I src/main -I src/test -DGITREV=$(gitrev) cflags := -O2 -pipe -ffunction-sections -fdata-sections \ - -Wall -std=c99 + -Wall -std=c99 -DPSAPI_VERSION=1 cflags_release := -Werror ldflags := -Wl,--gc-sections -static-libgcc