From 37f1004db26b695c3b23f27c814f1fdbe1c04ccf Mon Sep 17 00:00:00 2001 From: wmayer Date: Thu, 24 Mar 2022 21:09:19 +0100 Subject: [PATCH] PD: include header with export macros --- src/Mod/PartDesign/App/Body.h | 1 + src/Mod/PartDesign/App/DatumCS.h | 1 + src/Mod/PartDesign/App/DatumLine.h | 1 + src/Mod/PartDesign/App/DatumPlane.h | 1 + src/Mod/PartDesign/App/DatumPoint.h | 1 + src/Mod/PartDesign/App/PreCompiled.h | 11 ----------- src/Mod/PartDesign/App/ShapeBinder.h | 1 + src/Mod/PartDesign/Gui/PreCompiled.h | 17 ----------------- src/Mod/PartDesign/Gui/ViewProvider.h | 1 - src/Mod/PartDesign/Gui/ViewProviderBody.h | 1 + 10 files changed, 7 insertions(+), 29 deletions(-) diff --git a/src/Mod/PartDesign/App/Body.h b/src/Mod/PartDesign/App/Body.h index c5e7d3ba6c..33e83307e7 100644 --- a/src/Mod/PartDesign/App/Body.h +++ b/src/Mod/PartDesign/App/Body.h @@ -25,6 +25,7 @@ #define PARTDESIGN_Body_H #include +#include namespace App { class Origin; diff --git a/src/Mod/PartDesign/App/DatumCS.h b/src/Mod/PartDesign/App/DatumCS.h index d08949bf7d..40742300ca 100644 --- a/src/Mod/PartDesign/App/DatumCS.h +++ b/src/Mod/PartDesign/App/DatumCS.h @@ -25,6 +25,7 @@ #define PARTDESIGN_DATUMCS_H #include +#include namespace PartDesign { diff --git a/src/Mod/PartDesign/App/DatumLine.h b/src/Mod/PartDesign/App/DatumLine.h index d7f1c044b0..6a4497c6cc 100644 --- a/src/Mod/PartDesign/App/DatumLine.h +++ b/src/Mod/PartDesign/App/DatumLine.h @@ -26,6 +26,7 @@ #define PARTDESIGN_DATUMLINE_H #include +#include #include namespace PartDesign diff --git a/src/Mod/PartDesign/App/DatumPlane.h b/src/Mod/PartDesign/App/DatumPlane.h index 34ae349c29..8c2035be35 100644 --- a/src/Mod/PartDesign/App/DatumPlane.h +++ b/src/Mod/PartDesign/App/DatumPlane.h @@ -26,6 +26,7 @@ #define PARTDESIGN_DATUMPLANE_H #include +#include #include namespace PartDesign diff --git a/src/Mod/PartDesign/App/DatumPoint.h b/src/Mod/PartDesign/App/DatumPoint.h index db47d79ec5..bf58b1fe5d 100644 --- a/src/Mod/PartDesign/App/DatumPoint.h +++ b/src/Mod/PartDesign/App/DatumPoint.h @@ -26,6 +26,7 @@ #define PARTDESIGN_DATUMPOINT_H #include +#include namespace PartDesign { diff --git a/src/Mod/PartDesign/App/PreCompiled.h b/src/Mod/PartDesign/App/PreCompiled.h index 2a71ac9c90..4eff1066ee 100644 --- a/src/Mod/PartDesign/App/PreCompiled.h +++ b/src/Mod/PartDesign/App/PreCompiled.h @@ -26,17 +26,6 @@ #include -// Exporting of App classes -#ifdef FC_OS_WIN32 -# define PartDesignExport __declspec(dllexport) -# define PartExport __declspec(dllimport) -# define MeshExport __declspec(dllimport) -#else // for Linux -# define PartDesignExport -# define PartExport -# define MeshExport -#endif - #ifdef _MSC_VER // disable warning triggered by use of Part::FaceMaker // see forum thread "Warning C4275 non-dll class used as base for dll class" diff --git a/src/Mod/PartDesign/App/ShapeBinder.h b/src/Mod/PartDesign/App/ShapeBinder.h index 81d0c1eeb4..75c5b13d90 100644 --- a/src/Mod/PartDesign/App/ShapeBinder.h +++ b/src/Mod/PartDesign/App/ShapeBinder.h @@ -28,6 +28,7 @@ #include #include #include +#include namespace PartDesign { diff --git a/src/Mod/PartDesign/Gui/PreCompiled.h b/src/Mod/PartDesign/Gui/PreCompiled.h index e9a637e132..5b39942baf 100644 --- a/src/Mod/PartDesign/Gui/PreCompiled.h +++ b/src/Mod/PartDesign/Gui/PreCompiled.h @@ -26,23 +26,6 @@ #include -// Importing of App classes -#ifdef FC_OS_WIN32 -# define PartDesignExport __declspec(dllimport) -# define PartDesignGuiExport __declspec(dllexport) -# define PartExport __declspec(dllimport) -# define PartGuiExport __declspec(dllimport) -# define SketcherExport __declspec(dllimport) -# define SketcherGuiExport __declspec(dllimport) -#else // for Linux -# define PartDesignExport -# define PartDesignGuiExport -# define PartExport -# define PartGuiExport -# define SketcherExport -# define SketcherGuiExport -#endif - #ifdef _MSC_VER # pragma warning(disable : 4005) diff --git a/src/Mod/PartDesign/Gui/ViewProvider.h b/src/Mod/PartDesign/Gui/ViewProvider.h index a12552a067..1506f5eef2 100644 --- a/src/Mod/PartDesign/Gui/ViewProvider.h +++ b/src/Mod/PartDesign/Gui/ViewProvider.h @@ -29,7 +29,6 @@ #include #include -#include namespace PartDesignGui { diff --git a/src/Mod/PartDesign/Gui/ViewProviderBody.h b/src/Mod/PartDesign/Gui/ViewProviderBody.h index d67e77f583..dc2a490c01 100644 --- a/src/Mod/PartDesign/Gui/ViewProviderBody.h +++ b/src/Mod/PartDesign/Gui/ViewProviderBody.h @@ -25,6 +25,7 @@ #define PARTGUI_ViewProviderBody_H #include +#include #include #include