aboutsummaryrefslogtreecommitdiff
path: root/libXfont/src/fontfile/fontscale.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-01-24 12:57:19 +0000
committermarha <marha@users.sourceforge.net>2010-01-24 12:57:19 +0000
commitc30175e5dfc83c42eba93614ce7c084236f348a9 (patch)
tree2e49ffc58ee77d75bb54c98949ab7bc329146b64 /libXfont/src/fontfile/fontscale.c
parent7ee8516a0f5ccb3d6adaa094de9180b5a17fc50c (diff)
downloadvcxsrv-c30175e5dfc83c42eba93614ce7c084236f348a9.tar.gz
vcxsrv-c30175e5dfc83c42eba93614ce7c084236f348a9.tar.bz2
vcxsrv-c30175e5dfc83c42eba93614ce7c084236f348a9.zip
Remap hypot to _hypot.
Make sure the strdup prototype is included.
Diffstat (limited to 'libXfont/src/fontfile/fontscale.c')
-rw-r--r--libXfont/src/fontfile/fontscale.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libXfont/src/fontfile/fontscale.c b/libXfont/src/fontfile/fontscale.c
index 8002dde81..cdc43082f 100644
--- a/libXfont/src/fontfile/fontscale.c
+++ b/libXfont/src/fontfile/fontscale.c
@@ -37,6 +37,10 @@ in this Software without prior written authorization from The Open Group.
#include <X11/fonts/fntfilst.h>
#include <math.h>
+#ifdef _MSC_VER
+#define hypot _hypot
+#endif
+
Bool
FontFileAddScaledInstance (FontEntryPtr entry, FontScalablePtr vals,
FontPtr pFont, char *bitmapName)