summaryrefslogtreecommitdiffstats
path: root/font.c
diff options
context:
space:
mode:
authordscho <dscho>2001-10-13 17:34:44 +0000
committerdscho <dscho>2001-10-13 17:34:44 +0000
commita1b2220287e7de4e0c1c2fc39f50243e31fab9e1 (patch)
tree4ea00814d3adf201747140b6d46a5f03e95e6cb6 /font.c
parente47ffe3dfc7386e3bb9ca22ee7d10b9c7f78355e (diff)
downloadlibtdevnc-a1b2220287e7de4e0c1c2fc39f50243e31fab9e1.tar.gz
libtdevnc-a1b2220287e7de4e0c1c2fc39f50243e31fab9e1.zip
INT_MAX maybe not defined
Diffstat (limited to 'font.c')
-rw-r--r--font.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/font.c b/font.c
index 53055b4..680ec33 100644
--- a/font.c
+++ b/font.c
@@ -131,6 +131,10 @@ void rfbFontBBox(rfbFontDataPtr font,unsigned char c,int* x1,int* y1,int* x2,int
*y2=*y1+font->metaData[c*5+2];
}
+#ifndef INT_MAX
+#define INT_MAX 0x7fffffff
+#endif
+
void rfbWholeFontBBox(rfbFontDataPtr font,
int *x1, int *y1, int *x2, int *y2)
{