pyuno/source/module/pyuno_impl.hxx | 5 +++++ 1 file changed, 5 insertions(+)
New commits: commit 781548472b9ac4609ecfff5918444564cbb75500 Author: Tor Lillqvist <tlillqv...@suse.com> Date: Fri Dec 21 18:27:57 2012 +0200 VS2012 WaE: C4211: nonstandard extension used : redefined extern to static Some screwup with hypot(). As a workaround, include <math.h> early. Change-Id: Ic8c6abc45f8502097c6b6b619108d50ea3c22392 diff --git a/pyuno/source/module/pyuno_impl.hxx b/pyuno/source/module/pyuno_impl.hxx index e794c9d..6231bad 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 _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits