From 21317e7da39a8c74b3690ccb4713e6e6d2ed2556 Mon Sep 17 00:00:00 2001 From: mittorn Date: Thu, 18 Aug 2016 23:23:03 +0000 Subject: [PATCH] Fix build on some enviroments --- dlls/extdll.h | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/dlls/extdll.h b/dlls/extdll.h index cecf62f3..cbc7ebb9 100644 --- a/dlls/extdll.h +++ b/dlls/extdll.h @@ -51,12 +51,6 @@ typedef int BOOL; #include #include #endif //_WIN32 -#ifndef min -#define min(a,b) (((a) < (b)) ? (a) : (b)) -#endif -#ifndef max -#define max(a,b) (((a) > (b)) ? (a) : (b)) -#endif // Misc C-runtime library headers #include "stdio.h" @@ -84,4 +78,11 @@ typedef float vec_t; // needed before including progdefs.h // Shared header between the client DLL and the game DLLs #include "cdll_dll.h" +#ifndef min +#define min(a,b) (((a) < (b)) ? (a) : (b)) +#endif +#ifndef max +#define max(a,b) (((a) > (b)) ? (a) : (b)) +#endif + #endif //EXTDLL_H