summaryrefslogtreecommitdiff
path: root/pyuno
diff options
context:
space:
mode:
Diffstat (limited to 'pyuno')
-rw-r--r--pyuno/source/module/pyuno_impl.hxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/pyuno/source/module/pyuno_impl.hxx b/pyuno/source/module/pyuno_impl.hxx
index e794c9d40738..6231bade2165 100644
--- a/pyuno/source/module/pyuno_impl.hxx
+++ b/pyuno/source/module/pyuno_impl.hxx
@@ -19,6 +19,11 @@
#ifndef _PYUNO_IMPL_
#define _PYUNO_IMPL_
+#if defined(_MSC_VER) && (_MSC_VER >= 1700)
+// Workaround for some horrible hypot() mess
+#include <math.h>
+#endif
+
#include <Python.h>
//Must define PyVarObject_HEAD_INIT for Python 2.5 or older