diff options
author | Owen Taylor <otaylor@redhat.com> | 2005-08-27 18:46:34 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@redhat.com> | 2005-08-27 18:46:34 +0000 |
commit | a6acc962f76c1eba9dec3ee1646413f6c82ac6e0 (patch) | |
tree | a436ad07585c49f645928c565d38ff5ce539b2ac /src/cairoint.h | |
parent | 3c53414cf34d2027284bdbd4836d10a2c0d998c0 (diff) |
Undef MIN/MAX before defining them in case some system header happens to define them. (#4196, Christian Biesinger)
Diffstat (limited to 'src/cairoint.h')
-rw-r--r-- | src/cairoint.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cairoint.h b/src/cairoint.h index 346dbe6f4..a43136bea 100644 --- a/src/cairoint.h +++ b/src/cairoint.h @@ -146,7 +146,10 @@ # define CAIRO_MUTEX_UNLOCK(name) #endif +#undef MIN #define MIN(a, b) ((a) < (b) ? (a) : (b)) + +#undef MAX #define MAX(a, b) ((a) > (b) ? (a) : (b)) #ifndef FALSE |