+2004-05-24 Daniel Berlin <dberlin@dberlin.org>
+
+ PR other/15627
+ * engine/util.h: Include ansidecl.h.
+ Make max and min static inline.
+ * engine/util.c: Remove max and min from here.
+
2004-03-26 Andreas Jaeger <aj@suse.de>
* configure.in: Remove GCC_NO_EXECUTABLES.
return (char *) ptr1 - (char *) ptr2;
}
-int min(int a, int b) { if (a < b) return a; else return b; }
-int max(int a, int b) { if (a < b) return b; else return a; }
/* int abs(int a) { if (a < 0) return -a; else return a; } */
#include <stdarg.h>
#include <stdlib.h>
#include <regions.h>
+#include <ansidecl.h>
#include "compiler.h"
#include "linkage.h"
#include "bool.h"
if ptr1 < ptr2, or a value >0 if ptr1 > ptr2. */
int ptr_cmp(const void *ptr1, const void *ptr2);
-extern inline int min(int, int);
-extern inline int max(int, int);
-extern inline int min(int a, int b) { if (a < b) return a; else return b; }
-extern inline int max(int a, int b) { if (a < b) return b; else return a; }
+static inline int min(int a, int b) { if (a < b) return a; else return b; }
+static inline int max(int a, int b) { if (a < b) return b; else return a; }
EXTERN_C_END
#endif