mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-01-19 15:25:04 +01:00
Bug 4196: undef MIN an MAX before defining to avoid duplicate definition
This commit is contained in:
parent
1b11d3830b
commit
0ee64b8468
2 changed files with 4 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue