Add max() and min() macros if not defined.

This commit is contained in:
Marcus Sundberg 2000-01-09 04:57:15 +00:00
parent 992788cca4
commit e06585df17
1 changed files with 5 additions and 0 deletions

View File

@ -58,6 +58,11 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#include "world.h"
#include "pmove.h"
#ifndef max
# define max(a,b) ((a) > (b) ? (a) : (b))
# define min(a,b) ((a) < (b) ? (a) : (b))
#endif
/* Win32 have these underscored... */
#if !defined(HAVE_SNPRINTF) && defined(HAVE__SNPRINTF)
# define snprintf _snprintf