X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/930e4cfaeb0a8110d9811fa4ec5fe0c0048398da..db58b66138e2b612f402e92e19698aef09e3d913:/src/bindings/python/simgrid_python.cpp 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"