(re3) Fix compiler errors related to MinGW
#1262
Open
alextwothousand wants to merge 7 commits from alextwothousand/master
into master
Loading…
Reference in New Issue
There is no content yet.
Delete Branch 'alextwothousand/master'
Deleting a branch is permanent. It CANNOT be undone. Continue?
now it compiles on MinGW? :o
Perhaps casting to DWORD_PTR is better, since that's essentially the same?
I'm surprised MSVC doesn't need this.
What missing symbol is the linker complaining about?
If MSVC also needs, the library can be moved to a
if(WIN32)
branch.Or is this using the msys2 compiler of msys2?
msys2 has (more then) 3 platforms: MSYS2, MINGW32 and MINGW64 (value of the
MPLATFORM
environment variable)always did, haha.
did actually try that. game wouldn't load, but I think it was for a unrelated issue. will test it again now and let you know how it goes.
MSVC does need winmm. It still has access to it, I changed
#if _WIN32
to#if _MSC_VER
.I am using msys2 / mingw64.
If there is a
if(WIN32)
branch, I will likely move it there instead.I just looked into
src/CMakeLists.txt
. There is noif(WIN32)
branch at all. Only a check for GNU / Clang OR MSVC compilers - which our situation does not match either.I've made a few corrections.
Thanks!
This syntax is also used in
src/audio/oal/stream.cpp
.Grazie grazie.
I appreciate your fix for X11, but I want to do this by checking if environment has X11 (see https://github.com/GTAmodding/re3/issues/1180), and otherwise disable GET_KEYBOARD_INPUT_FROM_X11. if you remove that part, I can merge these 2 PRs immediately.