fix HPUX bustage - HP already has MIN, MAX, TRUE, and FALSE defined

This commit is contained in:
alecf%netscape.com 1999-02-26 17:27:02 +00:00
parent cbe84d0855
commit 683a48a72c
2 changed files with 12 additions and 0 deletions

View File

@ -34,6 +34,10 @@ typedef struct {
short x, y, width, height;
}RECTANGLE, RectangleRec, *RectanglePtr;
#ifdef TRUE
#undef TRUE
#endif
#define TRUE 1
#ifndef FALSE
#define FALSE 0

View File

@ -20,6 +20,14 @@
#include "nsString.h"
#include "nsUnitConversion.h"
#ifdef MIN
#undef MIN
#endif
#ifdef MAX
#undef MAX
#endif
#define MIN(a,b)\
((a) < (b) ? (a) : (b))
#define MAX(a,b)\