1
0
mirror of https://github.com/djhackersdev/bemanitools.git synced 2025-02-26 14:41:53 +01:00

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
This commit is contained in:
icex2 2020-08-21 14:34:22 +02:00
parent 189ff7551a
commit 1982094369

View File

@ -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