From: Martin Quinson Date: Tue, 22 Jan 2019 20:22:02 +0000 (+0100) Subject: Try to get python compiling even with MinGW X-Git-Tag: v3_22~501 X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/commitdiff_plain/db58b66138e2b612f402e92e19698aef09e3d913 Try to get python compiling even with MinGW --- 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"