summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2013-07-24 13:00:32 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2013-07-31 10:05:49 +1000
commit1ddaf0af41098d0a01eac162c6fe4d38f2fbbbad (patch)
tree1836f25b8342ea63b090711b9bbdb198ab39ccb5
parent6f7c5c558006bb69fdf0af73103097c012ccfed5 (diff)
downloadmtdev-git-1ddaf0af41098d0a01eac162c6fe4d38f2fbbbad.tar.gz
Fix compiler warning - implicit declaration of function 'abs'
match_four.c:80:4: warning: implicit declaration of function 'abs' [-Wimplicit-function-declaration] *dist++ = abs(q->x - p->x) + abs(q->y - p->y); Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
-rw-r--r--src/match_four.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/match_four.c b/src/match_four.c
index c7d2cd3..df88afb 100644
--- a/src/match_four.c
+++ b/src/match_four.c
@@ -1,5 +1,6 @@
#include "match.h"
#include <limits.h>
+#include <stdlib.h>
typedef unsigned char u8;
typedef unsigned int u32;