diff options
author | Jeremy Huddleston <jeremyhu@apple.com> | 2012-01-22 11:55:29 -0800 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2012-01-22 11:55:29 -0800 |
commit | d31153b30abd26c3f65e19d126ce4a3542cf14c0 (patch) | |
tree | 3505b20c812c2b731eb6efe6d94ec13887f901cc /src | |
parent | 8ff85c4322e63144a92747d9e4ca8216ab249e60 (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')
-rw-r--r-- | src/Tip.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -43,6 +43,8 @@ #include <X11/Xaw3d/TipP.h> #include <X11/Xaw3d/XawInit.h> +#include <stdlib.h> + #define TIP_EVENT_MASK (ButtonPressMask | \ ButtonReleaseMask | \ PointerMotionMask | \ |