openbsd-ports/devel/glib/patches/patch-aj

28 lines
570 B
Plaintext

--- glib.h.orig Sat Aug 26 23:51:58 2000
+++ glib.h Sat Aug 26 23:53:48 2000
@@ -27,6 +27,8 @@
#ifndef __G_LIB_H__
#define __G_LIB_H__
+#include <sys/param.h>
+
/* system specific config file glibconfig.h provides definitions for
* the extrema of many of the standard types. These are:
*
@@ -130,11 +132,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))