locally define min()/max() so there won't be unresolved symbols

This commit is contained in:
Jonathan Gray 2013-04-26 03:49:22 +10:00
parent 80b273bbaa
commit ecd674b852
2 changed files with 6 additions and 0 deletions

View file

@ -5,6 +5,8 @@
#include "../ghoul2/G2.h" #include "../ghoul2/G2.h"
#include "../game/bg_saga.h" #include "../game/bg_saga.h"
#define max(x,y) ((x)>(y)?(x):(y))
extern vmCvar_t cg_thirdPersonAlpha; extern vmCvar_t cg_thirdPersonAlpha;
extern int cgSiegeTeam1PlShader; extern int cgSiegeTeam1PlShader;

View file

@ -21,6 +21,10 @@ USER INTERFACE MAIN
#include "../cgame/holocronicons.h" #include "../cgame/holocronicons.h"
#ifndef min
#define min(a, b) ((a) < (b) ? (a) : (b))
#endif
extern void UI_SaberAttachToChar( itemDef_t *item ); extern void UI_SaberAttachToChar( itemDef_t *item );
char *forcepowerDesc[NUM_FORCE_POWERS] = char *forcepowerDesc[NUM_FORCE_POWERS] =