summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMichael Smith <mikesmiffy128@gmail.com>2022-04-24 04:10:36 +0100
committerMichael Smith <mikesmiffy128@gmail.com>2022-04-24 04:10:36 +0100
commit82aee3171eaa1d9a6eb69242655fd972bdd0b07b (patch)
treedb6c1cdec7b38c3d5a78ec76a59f14f1f95f6f26 /src
parentaf33ebb75a4740d4cf9b6fdbfcbb3014a5226fe3 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/dbg.c2
-rw-r--r--src/os.h2
-rw-r--r--src/rinput.c2
3 files changed, 0 insertions, 6 deletions
diff --git a/src/dbg.c b/src/dbg.c
index c7af49a..06b88f8 100644
--- a/src/dbg.c
+++ b/src/dbg.c
@@ -15,8 +15,6 @@
*/
#ifdef _WIN32
-#define WIN32_LEAN_AND_MEAN
-#define NOMINMAX
#include <Windows.h>
#endif
diff --git a/src/os.h b/src/os.h
index 0e30005..d789717 100644
--- a/src/os.h
+++ b/src/os.h
@@ -28,8 +28,6 @@
#include <errno.h>
#include <fcntl.h>
#ifdef _WIN32
-#define NOMINMAX
-#define WIN32_LEAN_AND_MEAN
#include <io.h>
#include <wchar.h>
// DUMB HACK: noreturn.h is alphabetically before os.h so including it after
diff --git a/src/rinput.c b/src/rinput.c
index 170fd3e..867b5be 100644
--- a/src/rinput.c
+++ b/src/rinput.c
@@ -17,8 +17,6 @@
// NOTE: compiled on Windows only. All Linux Source releases are new enough to
// have raw input already.
-#define WIN32_LEAN_AND_MEAN
-#define NOMINMAX
#include <stdbool.h>
#include <Windows.h>