From d5aa9ae0f141194e2b9ad33a15c0ae4deffd62fa Mon Sep 17 00:00:00 2001 From: Alug Date: Thu, 16 Oct 2025 15:07:35 +0100 Subject: [PATCH] fix 32bit windoze compile again...... --- src/Makefile.d/win32.mk | 4 +++- src/doomdef.h | 6 ------ src/win32/Sourcefile | 1 + 3 files changed, 4 insertions(+), 7 deletions(-) create mode 100644 src/win32/Sourcefile diff --git a/src/Makefile.d/win32.mk b/src/Makefile.d/win32.mk index 8c5e75b8e..4adcfe6e8 100644 --- a/src/Makefile.d/win32.mk +++ b/src/Makefile.d/win32.mk @@ -2,6 +2,8 @@ # Mingw, if you don't know, that's Win32/Win64 # +sources+=$(call List,win32/Sourcefile) + ifndef MINGW64 EXENAME?=srb2kart-saturn_32bit.exe else @@ -95,7 +97,7 @@ LIBBACKTRACE_libs:=-L$(lib)/lib/x86_64 -lbacktrace $(eval $(call _set,LIBBACKTRACE)) else lib:=../libs/drmingw -opts+=-I$(lib)/include +opts+=-I$(lib)/include -DHAVE_DRMINGW libs+=-L$(lib)/lib/win32 -lmgwhelp -lexchndl endif diff --git a/src/doomdef.h b/src/doomdef.h index 30419978b..00b4bc1f0 100644 --- a/src/doomdef.h +++ b/src/doomdef.h @@ -90,12 +90,6 @@ extern FILE *logstream; extern char logfilename[1024]; #endif -// not sure if this belongs here lul -// TODO: figure out whats preventing 32bit windows from working with libbacktrace -#if defined(_WIN32) && !defined(__MINGW64__) -#define HAVE_DRMINGW -#endif - #if defined (HAVE_LIBBACKTRACE) #define CRASH_LOGFILE_NAME "srb2kart-crash-log.txt" #elif defined (HAVE_DRMINGW) diff --git a/src/win32/Sourcefile b/src/win32/Sourcefile new file mode 100644 index 000000000..0122059d8 --- /dev/null +++ b/src/win32/Sourcefile @@ -0,0 +1 @@ +win_dbg.c