From db58b66138e2b612f402e92e19698aef09e3d913 Mon Sep 17 00:00:00 2001 From: Martin Quinson Date: Tue, 22 Jan 2019 21:22:02 +0100 Subject: [PATCH] Try to get python compiling even with MinGW --- src/bindings/python/simgrid_python.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/bindings/python/simgrid_python.cpp b/src/bindings/python/simgrid_python.cpp index 05d124e876..2f48be6018 100644 --- a/src/bindings/python/simgrid_python.cpp +++ b/src/bindings/python/simgrid_python.cpp @@ -3,8 +3,14 @@ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ +#ifdef _WIN32 +#warning Try to work around https://bugs.python.org/issue11566 +#include +#define hypot _hypot // Must come before pybind11 when compiling with MinGW32-64 (https://bugs.python.org/issue11566) +#endif + #include -#include // Must be first +#include // Must come before our own stuff #include #include "src/kernel/context/Context.hpp" -- 2.20.1