aboutsummaryrefslogtreecommitdiff
path: root/xorg-server/mi/miwideline.c
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2010-01-24 12:41:38 +0000
committermarha <marha@users.sourceforge.net>2010-01-24 12:41:38 +0000
commit974379a8cbc18be08eec987bfcf09dc132d31223 (patch)
treee8ea69f954a402e4d597fb112a9bc26cbb2fac69 /xorg-server/mi/miwideline.c
parent439cac06f0d4f641e9c7c0dd6ae62c98ebfd8fa9 (diff)
downloadvcxsrv-974379a8cbc18be08eec987bfcf09dc132d31223.tar.gz
vcxsrv-974379a8cbc18be08eec987bfcf09dc132d31223.tar.bz2
vcxsrv-974379a8cbc18be08eec987bfcf09dc132d31223.zip
The visual studio compiler does not define a prototype for hypot but for _hypot. This caused wrong plotting of lines in octave. (Problem reported by nkmho )
Diffstat (limited to 'xorg-server/mi/miwideline.c')
-rw-r--r--xorg-server/mi/miwideline.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/xorg-server/mi/miwideline.c b/xorg-server/mi/miwideline.c
index 210a6251e..838b06c68 100644
--- a/xorg-server/mi/miwideline.c
+++ b/xorg-server/mi/miwideline.c
@@ -45,6 +45,10 @@ from The Open Group.
#include <math.h>
#undef _XOPEN_SOURCE
#endif
+#ifdef _MSC_VER
+#define hypot _hypot
+#endif
+
#include <X11/X.h>
#include "windowstr.h"
#include "gcstruct.h"