VOGONS


First post, by ssjkakaroto

User metadata
Rank Newbie
Rank
Newbie

Hi, a while ago one of DevilutionX’s devs fixed its compilation for Windows 95 and XP.

The MinGW patch can be found here: https://github.com/diasurgical/DevilutionX/ra … vista-gcc.patch

And the environment setup scripts can be found here:

9x - https://github.com/diasurgical/DevilutionX/ra … mingw9x-prep.sh (I think there’s a typo on line 203; it should be 0x0400 instead of 0x0500)
XP - https://github.com/diasurgical/DevilutionX/ra … mingwxp-prep.sh

The good thing about this approach is that you can use GitHub Actions or set up an updated Linux VM and still be able to cross-compile to Windows 95.

It's a shame all of these ports of old games all require Windows 10+ to run when said games should easily be able to run on old machines with old OSs.

Reply 1 of 4, by lmemsm

User metadata
Rank Newbie
Rank
Newbie

I still use code from the original MinGW project. I forked the last public domain versions of w32api and mingwrt and am maintaining them. Recently built gcc 6.3.0 with them. I typically try to target my builds to work on Windows XP or later. Don't have a Windows 95 machine to see if they'll work there. I have been doing a lot of patching to standard FOSS libraries and programs just to maintain backward compatibility on Windows systems the best I can. I also have my own C11 and POSIX threading library which gets around some of the issues of thread libraries using newer Windows functionality. If anyone else is interested in this topic, I would love to compare notes with others who are trying to keep FOSS working and viable on older operating systems. I just spent a couple of days trying to get the latest versions of libressl and curl patched so they still build for older versions of Windows. I have build scripts that automate building (from source) several programs and libraries that will work on older Windows operating systems. Is anyone else backporting modern FOSS C/C++ libraries and applications to work on older Windows systems?

Reply 2 of 4, by jakethompson1

User metadata
Rank l33t
Rank
l33t

I went through this exercise with PuTTY a while back (does that count as modern or old?)
I believe the original mingw32 (not mingw-w64), at the time, still worked if compiled from source to use i486 instead of i686 as the target.
The mingw32 libc has some XADDs in it in inline assembly as part of implementing some of the interlocked exchange stuff--meaning it's strictly i486 and up, not 386. Not that it matters much if you are targeting Win32.
Aside from mingw issues, PuTTY has some CPUIDs in it that aren't gated with making sure the right bit in EFLAGs is twiddleable or not. But since 486 CPUs don't have the instructions it is checking for anyway, iirc there was a #define you could get rid of to eliminate that code entirely.

Reply 3 of 4, by ssjkakaroto

User metadata
Rank Newbie
Rank
Newbie

I'm interested in this stuff mainly because it bothers me to no end that M$ forces a new OS when you compile with a recent compiler, even if the actual code is decades old. Even MSYS2 jumped ship.
So when I saw that, allegedly, DevilutionX was able to be cross-compiled to Windows 95 in a automated way, I wanted to test if at least I could compile stuff to Windows 7.
So I created a VM to simulate the Linux one available in Github CI and it seems to work well with very simple programs, but I couldn't get https://github.com/RetroPortingToolKit/psxrecomp to work correctly.
I need to test some more in Windows 7 and with Windows 95 (86box)

Reply 4 of 4, by gerwin

User metadata
Rank l33t
Rank
l33t
lmemsm wrote on 2026-11-20, 21:33:

Is anyone else backporting modern FOSS C/C++ libraries and applications to work on older Windows systems?

I do. What build succesfully is at https://www.gb-homepage.nl/ in the back-ports section. It is for Windows XP x86 mostly.
If you or someone else has similar repositories and tips, I would like to check it out.

Edit: I now notice the hosting company is blocking certain user agents like Firefox 82 and Chrome 120. Firefox 160 is accepted. Sorry about that... 2026 strikes again.

--> ISA Soundcard Overview // Doom MBF 2.04 // SetMul