Undef MIN/MAX before defining them in case some system header happens to define them. (#4196, Christian Biesinger)

This commit is contained in:
Owen Taylor 2005-08-27 18:46:34 +00:00
parent 3c53414cf3
commit a6acc962f7
2 changed files with 10 additions and 1 deletions

View file

@ -1,8 +1,14 @@
2005-08-27 Owen Taylor <otaylor@redhat.com>
* src/cairoint.h: Undef MIN/MAX before defining them in case
some system header happens to define them. (#4196, Christian
Biesinger)
2005-08-27 Owen Taylor <otaylor@redhat.com>
* src/cairo-image-surface.c (cairo_image_surface_create)
(cairo_image_surface_create_for_data): Fix docs not to talk about
%NULL returns. #4271, Duncan Coutts.
%NULL returns. (#4271, Duncan Coutts.)
2005-08-25 Tor Lillqvist <tml@novell.com>

View file

@ -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