handy macros that are available in windows but not loonix.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4385 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-06-04 15:37:39 +00:00
parent 1d1eeffa7b
commit d0c7e83b62

View file

@ -190,6 +190,10 @@ extern QCC_opcode_t pr_opcodes[]; // sized by initialization
#define Q_vsnprintf vsnprintf #define Q_vsnprintf vsnprintf
#endif #endif
#ifndef max
#define max(a,b) ((a) > (b) ? (a) : (b))
#define min(a,b) ((a) < (b) ? (a) : (b))
#endif
#define sv_num_edicts (*externs->sv_num_edicts) #define sv_num_edicts (*externs->sv_num_edicts)
#define sv_edicts (*externs->sv_edicts) #define sv_edicts (*externs->sv_edicts)