ref: 406ff1890954a97738f9522e88c0c51ab8cb8a01
parent: e4a20a983e43757948b339adf110fc9e843009dc
author: Clownacy <Clownacy@users.noreply.github.com>
date: Fri Mar 13 17:35:51 EDT 2020
Add CMakeLists.txt and Visual Studio 6 support The CMake file allows you to compile the accurate branch with whatever version of Visual Studio you have lying around, without having to clumbsily convert the VS2003 project. I've tested this with VS2019, VS2003, and VS6. VS6 is goofy - it's missing a few types and constants, and it's not smart enough to realise that ints and longs are the same in ILP32 data models. I've added a few small hacks to address this. Might undo them. Who knows. For now, I want to support VS6 because Mint compiled CSE2 with it before, and because VS6 uses `msvcrt.dll` as its C runtime, which apparently comes pre-installed in Windows, as opposed to all those other annoying runtime versions that require they be installed separately (which is why MinGW targets it specifically). Also, VS6 *should* give us Win95-compatible builds. The internet says MSVC2003 is Win95-compatible too, but Mint claims the vanilla EXE doesn't run on there. I imagine it has something to do with its static runtime library (VS2003 links the static one by default for some reason).