From: DeaDDooMER Date: Sun, 31 Jan 2021 13:49:29 +0000 (+0300) Subject: portability: fix min/max redefeinition warning X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=affcba78203f154a2a25dcfed5a3700c69a45e8c;p=flatwaifu.git portability: fix min/max redefeinition warning --- diff --git a/src/glob.h b/src/glob.h index 406caa8..c6cdeb1 100644 --- a/src/glob.h +++ b/src/glob.h @@ -41,8 +41,12 @@ typedef unsigned int dword; #define __MAX_FNAME 50 #define __MAX_EXT 50 -#define min(a,b) ((a)<(b)?(a):(b)) -#define max(a,b) ((a)>(b)?(a):(b)) +#ifndef min +# define min(a,b) ((a)<(b)?(a):(b)) +#endif +#ifndef max +# define max(a,b) ((a)>(b)?(a):(b)) +#endif #define myrand(a) (rand()%(a))