From d06dc1527cecfafc84360b7a3789a8c03c2177ca Mon Sep 17 00:00:00 2001 From: Uwe Date: Sat, 19 Mar 2022 20:25:22 +0100 Subject: [PATCH] [PD] remove Python.h from headers seems not to be necessary anymore --- src/Mod/PartDesign/App/AppPartDesign.cpp | 5 +---- src/Mod/PartDesign/App/AppPartDesignPy.cpp | 6 +----- src/Mod/PartDesign/App/PreCompiled.h | 3 --- src/Mod/PartDesign/Gui/AppPartDesignGui.cpp | 5 +---- src/Mod/PartDesign/Gui/PreCompiled.h | 8 ++------ 5 files changed, 5 insertions(+), 22 deletions(-) diff --git a/src/Mod/PartDesign/App/AppPartDesign.cpp b/src/Mod/PartDesign/App/AppPartDesign.cpp index ee49850477..d1e522411c 100644 --- a/src/Mod/PartDesign/App/AppPartDesign.cpp +++ b/src/Mod/PartDesign/App/AppPartDesign.cpp @@ -20,11 +20,7 @@ * * ***************************************************************************/ - #include "PreCompiled.h" -#ifndef _PreComp_ -# include -#endif #include #include @@ -61,6 +57,7 @@ #include "FeatureTransformed.h" #include "ShapeBinder.h" + namespace PartDesign { extern PyObject* initModule(); } diff --git a/src/Mod/PartDesign/App/AppPartDesignPy.cpp b/src/Mod/PartDesign/App/AppPartDesignPy.cpp index 056f99343a..e448dd58fe 100644 --- a/src/Mod/PartDesign/App/AppPartDesignPy.cpp +++ b/src/Mod/PartDesign/App/AppPartDesignPy.cpp @@ -20,18 +20,14 @@ * * ***************************************************************************/ - #include "PreCompiled.h" -#ifndef _PreComp_ -# include -#endif - #include #include #include #include + namespace PartDesign { class Module : public Py::ExtensionModule { diff --git a/src/Mod/PartDesign/App/PreCompiled.h b/src/Mod/PartDesign/App/PreCompiled.h index 7454b6fce7..4fb0457aa4 100644 --- a/src/Mod/PartDesign/App/PreCompiled.h +++ b/src/Mod/PartDesign/App/PreCompiled.h @@ -114,9 +114,6 @@ # include #endif - -#include - #endif // _PreComp_ #endif diff --git a/src/Mod/PartDesign/Gui/AppPartDesignGui.cpp b/src/Mod/PartDesign/Gui/AppPartDesignGui.cpp index d7cfb272d5..312637a097 100644 --- a/src/Mod/PartDesign/Gui/AppPartDesignGui.cpp +++ b/src/Mod/PartDesign/Gui/AppPartDesignGui.cpp @@ -20,11 +20,7 @@ * * ***************************************************************************/ - #include "PreCompiled.h" -#ifndef _PreComp_ -# include -#endif #include #include @@ -66,6 +62,7 @@ #include "ViewProviderShapeBinder.h" #include "ViewProviderBase.h" + // use a different name to CreateCommand() void CreatePartDesignCommands(void); void CreatePartDesignBodyCommands(void); diff --git a/src/Mod/PartDesign/Gui/PreCompiled.h b/src/Mod/PartDesign/Gui/PreCompiled.h index c07f6e4489..a9c3fcaf08 100644 --- a/src/Mod/PartDesign/Gui/PreCompiled.h +++ b/src/Mod/PartDesign/Gui/PreCompiled.h @@ -50,17 +50,13 @@ #ifdef _PreComp_ -// Python -#include - // standard -#include +#include #include #include +#include #include -#include - // Boost #include