PD: include header with export macros

This commit is contained in:
wmayer
2022-03-24 21:09:19 +01:00
parent 8e19f83803
commit 37f1004db2
10 changed files with 7 additions and 29 deletions

View File

@@ -25,6 +25,7 @@
#define PARTDESIGN_Body_H
#include <Mod/Part/App/BodyBase.h>
#include <Mod/PartDesign/PartDesignGlobal.h>
namespace App {
class Origin;

View File

@@ -25,6 +25,7 @@
#define PARTDESIGN_DATUMCS_H
#include <Mod/Part/App/DatumFeature.h>
#include <Mod/PartDesign/PartDesignGlobal.h>
namespace PartDesign
{

View File

@@ -26,6 +26,7 @@
#define PARTDESIGN_DATUMLINE_H
#include <Mod/Part/App/DatumFeature.h>
#include <Mod/PartDesign/PartDesignGlobal.h>
#include <App/PropertyUnits.h>
namespace PartDesign

View File

@@ -26,6 +26,7 @@
#define PARTDESIGN_DATUMPLANE_H
#include <Mod/Part/App/DatumFeature.h>
#include <Mod/PartDesign/PartDesignGlobal.h>
#include <App/PropertyUnits.h>
namespace PartDesign

View File

@@ -26,6 +26,7 @@
#define PARTDESIGN_DATUMPOINT_H
#include <Mod/Part/App/DatumFeature.h>
#include <Mod/PartDesign/PartDesignGlobal.h>
namespace PartDesign
{

View File

@@ -26,17 +26,6 @@
#include <FCConfig.h>
// 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"

View File

@@ -28,6 +28,7 @@
#include <App/DocumentObserver.h>
#include <App/FeaturePython.h>
#include <Mod/Part/App/DatumFeature.h>
#include <Mod/PartDesign/PartDesignGlobal.h>
namespace PartDesign
{

View File

@@ -26,23 +26,6 @@
#include <FCConfig.h>
// 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)

View File

@@ -29,7 +29,6 @@
#include <Gui/ViewProviderPythonFeature.h>
#include <Mod/Part/Gui/ViewProviderAttachExtension.h>
#include <Mod/PartDesign/PartDesignGlobal.h>
namespace PartDesignGui {

View File

@@ -25,6 +25,7 @@
#define PARTGUI_ViewProviderBody_H
#include <Mod/Part/Gui/ViewProvider.h>
#include <Mod/PartDesign/PartDesignGlobal.h>
#include <Gui/ViewProviderOriginGroupExtension.h>
#include <QCoreApplication>