28 lines
704 B
Plaintext
28 lines
704 B
Plaintext
$OpenBSD: patch-glib_gmacros_h,v 1.2 2003/04/17 05:55:42 marcm Exp $
|
|
--- glib/gmacros.h.orig Tue Jan 28 12:15:50 2003
|
|
+++ glib/gmacros.h Mon Feb 24 23:37:16 2003
|
|
@@ -34,6 +34,7 @@
|
|
/* We include stddef.h to get the system's definition of NULL
|
|
*/
|
|
#include <stddef.h>
|
|
+#include <sys/param.h>
|
|
|
|
/* Here we provide G_GNUC_EXTENSION as an alias for __extension__,
|
|
* where this is valid. This allows for warningless compilation of
|
|
@@ -137,11 +138,13 @@
|
|
#define TRUE (!FALSE)
|
|
#endif
|
|
|
|
-#undef MAX
|
|
+#ifndef MAX
|
|
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
|
|
+#endif
|
|
|
|
-#undef MIN
|
|
+#ifndef MIN
|
|
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
|
|
+#endif
|
|
|
|
#undef ABS
|
|
#define ABS(a) (((a) < 0) ? -(a) : (a))
|