diff --git a/src/Gui/PythonWrapper.cpp b/src/Gui/PythonWrapper.cpp index 16c39ae148..e7091a6ef0 100644 --- a/src/Gui/PythonWrapper.cpp +++ b/src/Gui/PythonWrapper.cpp @@ -25,11 +25,11 @@ #ifndef _PreComp_ # include # include +# include +# include +# include #endif #include -#include -#include -#include // Uncomment this block to remove PySide C++ support and switch to its Python interface //#undef HAVE_SHIBOKEN @@ -427,6 +427,8 @@ Py::Object PythonWrapper::fromQDir(const QDir& dir) const_cast(&dir), false, false, typeName); if (pyobj) return Py::asObject(pyobj); +#else + Q_UNUSED(dir) #endif throw Py::RuntimeError("Failed to wrap icon"); }