561f316f27
- don't use the local pcre, but use pcre from ports with tweaks from wilfried@ (pcre and static libs) ok steven@
28 lines
705 B
Plaintext
28 lines
705 B
Plaintext
$OpenBSD: patch-glib_gmacros_h,v 1.7 2007/10/24 22:29:03 jasper Exp $
|
|
--- glib/gmacros.h.orig Sun Sep 16 18:28:33 2007
|
|
+++ glib/gmacros.h Tue Oct 2 20:47:04 2007
|
|
@@ -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
|
|
@@ -169,11 +170,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))
|