summaryrefslogtreecommitdiff
path: root/Ports/cfunge/patches/define-max.patch
blob: b764bbc790901a807f138ec5481d3051a9e1aa85 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- ../lib/fungestring/funge_str-two-way.h
+++ ../lib/fungestring/funge_str-two-way.h
@@ -53,7 +53,7 @@
 
 #include <limits.h>
 #include <stdint.h>
-#include <sys/param.h>                  /* Defines MAX.  */
+#define MAX(a,b) (((a)>(b))?(a):(b))
 
 /* We use the Two-Way string matching algorithm, which guarantees
    linear complexity with constant space.  Additionally, for long