Bug 4196: undef MIN an MAX before defining to avoid duplicate definition

This commit is contained in:
Carl Worth 2006-06-13 16:50:43 -07:00
parent 1b11d3830b
commit 0ee64b8468
2 changed files with 4 additions and 0 deletions

View file

@ -45,7 +45,9 @@
#define INLINE
#endif
#undef MIN
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#undef MAX
#define MAX(a,b) ((a) > (b) ? (a) : (b))
/* C89 has implementation-defined behavior for % with negative operands.

View file

@ -69,7 +69,9 @@ SOFTWARE.
#define good(reg) assert(pixman_region16_valid(reg))
#undef MIN
#define MIN(a,b) ((a) < (b) ? (a) : (b))
#undef MAX
#define MAX(a,b) ((a) > (b) ? (a) : (b))
static pixman_box16_t pixman_region_emptyBox = {0, 0, 0, 0};