summaryrefslogtreecommitdiff
path: root/src/Tip.c
diff options
context:
space:
mode:
authorJeremy Huddleston <jeremyhu@apple.com>2012-01-22 11:55:29 -0800
committerJeremy Huddleston <jeremyhu@apple.com>2012-01-22 11:55:29 -0800
commitd31153b30abd26c3f65e19d126ce4a3542cf14c0 (patch)
tree3505b20c812c2b731eb6efe6d94ec13887f901cc /src/Tip.c
parent8ff85c4322e63144a92747d9e4ca8216ab249e60 (diff)
Include <stdlib.h> for abs()
Tip.c:336:9: error: implicit declaration of function 'abs' is invalid in C99 [-Werror,-Wimplicit-function-declaration] ksy += abs(ext->max_ink_extent.y); ^ 1 error generated. Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
Diffstat (limited to 'src/Tip.c')
-rw-r--r--src/Tip.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Tip.c b/src/Tip.c
index 6881670..5f54d14 100644
--- a/src/Tip.c
+++ b/src/Tip.c
@@ -43,6 +43,8 @@
#include <X11/Xaw3d/TipP.h>
#include <X11/Xaw3d/XawInit.h>
+#include <stdlib.h>
+
#define TIP_EVENT_MASK (ButtonPressMask | \
ButtonReleaseMask | \
PointerMotionMask | \