Add a safety check that the file is being compiled correctly

This commit is contained in:
Magnus Norddahl 2025-05-20 20:23:02 +02:00
commit aa51b22f9c

View file

@ -11,6 +11,10 @@ int I_GameMain(HINSTANCE hInstance, HINSTANCE nothing, LPWSTR cmdline, int nCmdS
#include <cstdint>
#pragma comment(linker,"/ENTRY:mainStartup")
#ifdef __AVX2__
#error "This file must be compiled with /arch:SSE2"
#endif
extern "C"
{
int WINAPI wWinMainCRTStartup();