diff options
| author | Martin Ridgers <[email protected]> | 2021-10-25 22:40:32 +0200 |
|---|---|---|
| committer | Martin Ridgers <[email protected]> | 2021-10-25 22:50:44 +0200 |
| commit | c0c3880d8b47198468aedb62f921a6fa1ab9fd96 (patch) | |
| tree | 808b0a234cc03937d22f1998031c8fe26c634eb8 | |
| parent | Define NOMINMAX and WIN32_MEAN_AND_LEAN via xmake.lua too (diff) | |
| download | zen-c0c3880d8b47198468aedb62f921a6fa1ab9fd96.tar.xz zen-c0c3880d8b47198468aedb62f921a6fa1ab9fd96.zip | |
Define the cut-down Windows defines via zencore.h too
| -rw-r--r-- | zencore/include/zencore/zencore.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/zencore/include/zencore/zencore.h b/zencore/include/zencore/zencore.h index de848146a..345468d55 100644 --- a/zencore/include/zencore/zencore.h +++ b/zencore/include/zencore/zencore.h @@ -29,6 +29,15 @@ # define ZEN_PLATFORM_MACOS 1 #endif +#if ZEN_PLATFORM_WINDOWS +# if !defined(NOMINMAX) +# define NOMINMAX // stops Windows.h from defining 'min/max' macros +# endif +# if !defined(WIN32_LEAN_AND_MEAN) +# define WIN32_LEAN_AND_MEAN // cut-down what Windows.h defines +# endif +#endif + ////////////////////////////////////////////////////////////////////////// // Compiler // |