Use the right project-level macros to nuke winapi min/max

This commit is contained in:
Will Toohey
2026-06-27 19:07:40 +10:00
parent 68b50b35b9
commit c1e2302765
3 changed files with 6 additions and 6 deletions

View File

@@ -9,7 +9,12 @@ project('layeredfs', 'c', 'cpp', version: '4.1',
)
add_project_link_arguments('-static', language: 'cpp')
add_project_arguments('-DVER_STRING="' + meson.project_version() + '"', language: 'cpp')
add_project_arguments(
'-DVER_STRING="' + meson.project_version() + '"',
'-DNOMINMAX',
'-DWIN32_LEAN_AND_MEAN',
language: 'cpp',
)
# note: not using fmt from the wrapdb because it needs pkgconfig which doesn't
# work for cross builds

View File

@@ -1,5 +1,4 @@
#include <optional>
#define NOMINMAX
#include <windows.h>
#include <stdio.h>

View File

@@ -23,10 +23,6 @@
#include "avs.h"
#include "modpath_handler.h"
// let me use the std:: version, damnit
#undef max
#undef min
#ifdef _DEBUG
#define DBG_VER_STRING "_DEBUG"
#else