shithub: qk1

Download patch

ref: 116362c0962a42879d05384c796d569194fa2354
parent: db483593b59cc824ab2eee0650cc9b737bafb014
author: Sigrid Solveig Haflínudóttir <sigrid@ftrv.se>
date: Thu Feb 1 13:46:21 EST 2024

don't redefine min/max

--- a/common.h
+++ b/common.h
@@ -32,8 +32,12 @@
 
 //============================================================================
 
+#ifndef max
 #define max(a,b) ((a)>(b)?(a):(b))
+#endif
+#ifndef min
 #define min(a,b) ((a)<(b)?(a):(b))
+#endif
 #define clamp(x,a,b) ((x)>(b)?(b):((x)<(a)?(a):(x)))
 
 #define Q_MAXCHAR ((char)0x7f)