From 417a3a6d92444832574b4bbd26f84fe67c8bb660 Mon Sep 17 00:00:00 2001 From: Alug Date: Tue, 26 Aug 2025 08:24:51 +0100 Subject: [PATCH] fix windows compile --- src/blua/luaconf.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/blua/luaconf.h b/src/blua/luaconf.h index 1fa50023f..2596838bb 100644 --- a/src/blua/luaconf.h +++ b/src/blua/luaconf.h @@ -18,7 +18,14 @@ #define INT32 int32_t #endif -#include "../doomdef.h" +#ifndef __cplusplus +#ifndef min // Double-Check with WATTCP-32's cdefs.h +#define min(x, y) (((x) < (y)) ? (x) : (y)) +#endif +#ifndef max // Double-Check with WATTCP-32's cdefs.h +#define max(x, y) (((x) > (y)) ? (x) : (y)) +#endif +#endif /* ** ==================================================================