Cleanup makefile
[SXSI/XMLTree.git] / bpcore.c
index 18e9cc9..acb37bf 100644 (file)
--- a/bpcore.c
+++ b/bpcore.c
@@ -1,6 +1,12 @@
 #include <stdio.h>
 #include <stdlib.h>
 #include "bp.h"
+#ifndef min
+ #define min(x,y) ((x)<(y)?(x):(y))
+#endif
+#ifndef max
+ #define max(x,y) ((x)>(y)?(x):(y))
+#endif
 
 #define NOTFOUND -2
 #define CONTINUE -3