From 82aee3171eaa1d9a6eb69242655fd972bdd0b07b Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Sun, 24 Apr 2022 04:10:36 +0100 Subject: Move WIN32_LEAN_AND_MEAN and NOMINMAX into flags They're literally always defined thusfar, and it's always possible to include specific headers for other stuff. So, rather than litter the source with defines (which might not even work in the likes of os.h if some other system header already decided to define/include stuff), let's just define it at the build script level. --- compile.bat | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compile.bat') diff --git a/compile.bat b/compile.bat index 3f4fe78..0f88cee 100644 --- a/compile.bat +++ b/compile.bat @@ -31,7 +31,7 @@ goto :main for /F %%b in ("%1") do set basename=%%~nb set objs=%objs% .build/%basename%.o %CC% -m32 -c -flto %cflags% %warnings% -I.build/include -D_CRT_SECURE_NO_WARNINGS -D_DLL ^ --DFILE_BASENAME=%basename% -o .build/%basename%.o %1 || exit /b +-DWIN32_LEAN_AND_MEAN -DNOMINMAX -DFILE_BASENAME=%basename% -o .build/%basename%.o %1 || exit /b goto :eof :main -- cgit v1.2.3