diff --git a/src/App/Range.h b/src/App/Range.h index 86872a4436..554a02057a 100644 --- a/src/App/Range.h +++ b/src/App/Range.h @@ -24,6 +24,9 @@ #define RANGE_H #include +#ifndef FC_GLOBAL_H +#include +#endif namespace App { diff --git a/src/Base/Builder3D.h b/src/Base/Builder3D.h index 239f56e5a2..927e0880d9 100644 --- a/src/Base/Builder3D.h +++ b/src/Base/Builder3D.h @@ -29,6 +29,9 @@ #include #include #include "Vector3D.h" +#ifndef FC_GLOBAL_H +#include +#endif namespace Base { diff --git a/src/Base/Debugger.h b/src/Base/Debugger.h index 114b7e38b0..503b3fba3a 100644 --- a/src/Base/Debugger.h +++ b/src/Base/Debugger.h @@ -26,6 +26,9 @@ #include #include +#ifndef FC_GLOBAL_H +#include +#endif namespace Base { /** diff --git a/src/Base/Factory.h b/src/Base/Factory.h index 06b51322cc..92699083cf 100644 --- a/src/Base/Factory.h +++ b/src/Base/Factory.h @@ -25,11 +25,13 @@ #ifndef BASE_FACTORY_H #define BASE_FACTORY_H -#include -#include -#include -#include -#include"../FCConfig.h" +#include +#include +#include +#include +#ifndef FC_GLOBAL_H +#include +#endif namespace Base diff --git a/src/Base/FileTemplate.h b/src/Base/FileTemplate.h index 42b90a19fa..c18e633f60 100644 --- a/src/Base/FileTemplate.h +++ b/src/Base/FileTemplate.h @@ -27,6 +27,9 @@ // Std. configurations #include +#ifndef FC_GLOBAL_H +#include +#endif namespace Base { diff --git a/src/Base/Handle.h b/src/Base/Handle.h index 539704ca43..7ca41f4466 100644 --- a/src/Base/Handle.h +++ b/src/Base/Handle.h @@ -30,6 +30,9 @@ #include #include #include +#ifndef FC_GLOBAL_H +#include +#endif class QAtomicInt; diff --git a/src/Base/InputSource.h b/src/Base/InputSource.h index 8178a130fe..856c5fd849 100644 --- a/src/Base/InputSource.h +++ b/src/Base/InputSource.h @@ -32,6 +32,9 @@ #include #include #include +#ifndef FC_GLOBAL_H +#include +#endif XERCES_CPP_NAMESPACE_BEGIN diff --git a/src/Base/Matrix.h b/src/Base/Matrix.h index dd2bbe2e13..f87b626b05 100644 --- a/src/Base/Matrix.h +++ b/src/Base/Matrix.h @@ -25,12 +25,15 @@ #define BASE_MATRIX_H #include +#include #include #include #include #include "Vector3D.h" -#include +#ifndef FC_GLOBAL_H +#include +#endif namespace Base { diff --git a/src/Base/MemDebug.h b/src/Base/MemDebug.h index 1b3d980f5a..4ef8ce5f43 100644 --- a/src/Base/MemDebug.h +++ b/src/Base/MemDebug.h @@ -22,30 +22,34 @@ #ifndef BASE_MEMDEBUG_H #define BASE_MEMDEBUG_H +#ifndef FC_GLOBAL_H +#include +#include +#endif namespace Base { - + // Std. configurations -#if defined(_MSC_VER) -class BaseExport MemCheck -{ -public: - MemCheck(); - ~MemCheck(); - - void setNextCheckpoint(); - static bool checkMemory(); - static bool dumpLeaks(); - static bool isValidHeapPointer(const void*); - -private: - _CrtMemState s1, s2, s3; -}; +#if defined(_MSC_VER) +class BaseExport MemCheck +{ +public: + MemCheck(); + ~MemCheck(); + + void setNextCheckpoint(); + static bool checkMemory(); + static bool dumpLeaks(); + static bool isValidHeapPointer(const void*); + +private: + _CrtMemState s1, s2, s3; +}; #endif - + } //namespace Base #endif // BASE_MEMDEBUG_H diff --git a/src/Base/PyTools.h b/src/Base/PyTools.h index bc1d4c43bc..13a7c0774c 100644 --- a/src/Base/PyTools.h +++ b/src/Base/PyTools.h @@ -73,6 +73,9 @@ extern "C" { /* a C library, but callable from C++ */ # undef _POSIX_C_SOURCE #endif // (re-)defined in pyconfig.h #include +#ifndef FC_GLOBAL_H +#include +#endif extern int PP_RELOAD; /* 1=reload py modules when attributes referenced */ extern int PP_DEBUG; /* 1=start debugger when string/function/member run */ diff --git a/src/Base/Rotation.h b/src/Base/Rotation.h index cb45dd0c19..aaf0c23307 100644 --- a/src/Base/Rotation.h +++ b/src/Base/Rotation.h @@ -25,6 +25,9 @@ #define BASE_ROTATION_H #include "Vector3D.h" +#ifndef FC_GLOBAL_H +#include +#endif namespace Base { diff --git a/src/Base/StackWalker.h b/src/Base/StackWalker.h index 788c818223..6e80971dc5 100644 --- a/src/Base/StackWalker.h +++ b/src/Base/StackWalker.h @@ -36,7 +36,10 @@ // so we need not to check the version (because we only support _MSC_VER >= 1100)! #pragma once -#include +#include +#ifndef FC_GLOBAL_H +#include +#endif // special defines for VC5/6 (if no actual PSDK is installed): #if _MSC_VER < 1300 diff --git a/src/Base/Tools.h b/src/Base/Tools.h index 6cac42a96b..be28e62183 100644 --- a/src/Base/Tools.h +++ b/src/Base/Tools.h @@ -24,6 +24,9 @@ #ifndef BASE_TOOLS_H #define BASE_TOOLS_H +#ifndef FC_GLOBAL_H +#include +#endif #include #include #include diff --git a/src/Base/Tools2D.h b/src/Base/Tools2D.h index cb228d10fe..7656557a70 100644 --- a/src/Base/Tools2D.h +++ b/src/Base/Tools2D.h @@ -28,11 +28,14 @@ #include #include #include -#include +#include #include #include #include "Vector3D.h" +#ifndef FC_GLOBAL_H +#include +#endif namespace Base { diff --git a/src/Base/Translate.h b/src/Base/Translate.h index c77a7b28c0..1b75a2fe26 100644 --- a/src/Base/Translate.h +++ b/src/Base/Translate.h @@ -26,6 +26,9 @@ #include #include +#ifndef FC_GLOBAL_H +#include +#endif namespace Base { diff --git a/src/Base/Type.h b/src/Base/Type.h index 866cdd3694..f77390cf56 100644 --- a/src/Base/Type.h +++ b/src/Base/Type.h @@ -30,6 +30,9 @@ #include #include #include +#ifndef FC_GLOBAL_H +#include +#endif namespace Base { diff --git a/src/Base/Uuid.h b/src/Base/Uuid.h index e8b8c01729..93e7d1986e 100644 --- a/src/Base/Uuid.h +++ b/src/Base/Uuid.h @@ -27,6 +27,9 @@ // Std. configurations #include +#ifndef FC_GLOBAL_H +#include +#endif namespace Base { diff --git a/src/FCConfig.h b/src/FCConfig.h index aeb476b061..a9addc0321 100644 --- a/src/FCConfig.h +++ b/src/FCConfig.h @@ -304,39 +304,7 @@ typedef unsigned __int64 uint64_t; //************************************************************************** // Windows import export DLL defines -#if defined (FC_OS_WIN32) || defined(FC_OS_CYGWIN) -# ifdef FCApp -# define AppExport __declspec(dllexport) -# define DataExport __declspec(dllexport) -# else -# define AppExport __declspec(dllimport) -# define DataExport __declspec(dllimport) -# endif -# ifdef FCBase -# define BaseExport __declspec(dllexport) -# else -# define BaseExport __declspec(dllimport) -# endif -# ifdef FCGui -# define GuiExport __declspec(dllexport) -# else -# define GuiExport __declspec(dllimport) -# endif -#else -# ifndef BaseExport -# define BaseExport -# endif -# ifndef GuiExport -# define GuiExport -# endif -# ifndef AppExport -# define AppExport -# endif -# ifndef DataExport -# define DataExport -# endif -#endif - +#include //************************************************************************** // here get the warnings of too long specifiers disabled (needed for VC6) diff --git a/src/FCGlobal.h b/src/FCGlobal.h new file mode 100644 index 0000000000..6e0e5ccf54 --- /dev/null +++ b/src/FCGlobal.h @@ -0,0 +1,62 @@ +/*************************************************************************** + * Copyright (c) 2019 Werner Mayer * + * * + * This file is part of the FreeCAD CAx development system. * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Library General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + * This library is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU Library General Public License for more details. * + * * + * You should have received a copy of the GNU Library General Public * + * License along with this library; see the file COPYING.LIB. If not, * + * write to the Free Software Foundation, Inc., 59 Temple Place, * + * Suite 330, Boston, MA 02111-1307, USA * + * * + ***************************************************************************/ +/** \file FCGlobal.h + * \brief Include export or import macros. + */ + + +#ifndef FC_GLOBAL_H +#define FC_GLOBAL_H + + +#if defined(WIN64) || defined(_WIN64) || defined(__WIN64__) || defined(__CYGWIN__) +# define FREECAD_DECL_EXPORT __declspec(dllexport) +# define FREECAD_DECL_IMPORT __declspec(dllimport) +#else +# define FREECAD_DECL_EXPORT +# define FREECAD_DECL_IMPORT +#endif + +// FreeCADBase +#ifdef FreeCADBase_EXPORTS +# define BaseExport FREECAD_DECL_EXPORT +#else +# define BaseExport FREECAD_DECL_IMPORT +#endif + +// FreeCADApp +#ifdef FreeCADApp_EXPORTS +# define AppExport FREECAD_DECL_EXPORT +# define DataExport FREECAD_DECL_EXPORT +#else +# define AppExport FREECAD_DECL_IMPORT +# define DataExport FREECAD_DECL_IMPORT +#endif + +// FreeCADGui +#ifdef FreeCADGui_EXPORTS +# define GuiExport FREECAD_DECL_EXPORT +#else +# define GuiExport FREECAD_DECL_IMPORT +#endif + +#endif //FC_GLOBAL_H diff --git a/src/Mod/Image/App/ImageBase.h b/src/Mod/Image/App/ImageBase.h index 144699c717..bb013316be 100644 --- a/src/Mod/Image/App/ImageBase.h +++ b/src/Mod/Image/App/ImageBase.h @@ -18,6 +18,8 @@ #ifndef IMAGEBASE_H #define IMAGEBASE_H +#include + namespace Image { diff --git a/src/Mod/Image/App/ImagePlane.h b/src/Mod/Image/App/ImagePlane.h index a2633e155d..22a462f840 100644 --- a/src/Mod/Image/App/ImagePlane.h +++ b/src/Mod/Image/App/ImagePlane.h @@ -27,6 +27,7 @@ #include #include #include +#include namespace Image { diff --git a/src/Mod/Image/Gui/ImageView.h b/src/Mod/Image/Gui/ImageView.h index c66ef7c847..7bc34f8e21 100644 --- a/src/Mod/Image/Gui/ImageView.h +++ b/src/Mod/Image/Gui/ImageView.h @@ -25,6 +25,7 @@ #else #include "GLImageBox.h" #endif +#include class QSlider; class QAction; diff --git a/src/Mod/Image/Gui/ViewProviderImagePlane.h b/src/Mod/Image/Gui/ViewProviderImagePlane.h index d676fe8096..c4e3bba7f6 100644 --- a/src/Mod/Image/Gui/ViewProviderImagePlane.h +++ b/src/Mod/Image/Gui/ViewProviderImagePlane.h @@ -25,6 +25,7 @@ #define IMAGE_ViewProviderImagePlane_H #include +#include class SoCoordinate3; class SoDrawStyle; @@ -48,12 +49,12 @@ public: void attach(App::DocumentObject *pcObject); void setDisplayMode(const char* ModeName); std::vector getDisplayModes() const; - void updateData(const App::Property*); - -private: - bool loadSvg(const char*, float x, float y, QImage& img); - -protected: + void updateData(const App::Property*); + +private: + bool loadSvg(const char*, float x, float y, QImage& img); + +protected: SoCoordinate3 * pcCoords; SoTexture2 * texture; }; diff --git a/src/Mod/Image/Gui/Workbench.h b/src/Mod/Image/Gui/Workbench.h index d8533ff3ac..16f8eb2dde 100644 --- a/src/Mod/Image/Gui/Workbench.h +++ b/src/Mod/Image/Gui/Workbench.h @@ -25,6 +25,7 @@ #define IMAGE_WORKBENCH_H #include +#include namespace ImageGui { diff --git a/src/Mod/Image/ImageGlobal.h b/src/Mod/Image/ImageGlobal.h new file mode 100644 index 0000000000..26cca10062 --- /dev/null +++ b/src/Mod/Image/ImageGlobal.h @@ -0,0 +1,32 @@ +/*************************************************************************** + * Copyright (c) Imetric 4D Imaging Sarl * + * * + * Author: Werner Mayer * + * * + ***************************************************************************/ + +#include + +#ifndef IMAGE_GLOBAL_H +#define IMAGE_GLOBAL_H + + +// Image +#ifndef ImageExport +#ifdef Image_EXPORTS +# define ImageExport FREECAD_DECL_EXPORT +#else +# define ImageExport FREECAD_DECL_IMPORT +#endif +#endif + +// ImageGui +#ifndef ImageGuiExport +#ifdef ImageGui_EXPORTS +# define ImageGuiExport FREECAD_DECL_EXPORT +#else +# define ImageGuiExport FREECAD_DECL_IMPORT +#endif +#endif + +#endif //IMAGE_GLOBAL_H diff --git a/src/Mod/Mesh/App/Core/Approximation.h b/src/Mod/Mesh/App/Core/Approximation.h index db61724d3c..cd71e568fb 100644 --- a/src/Mod/Mesh/App/Core/Approximation.h +++ b/src/Mod/Mesh/App/Core/Approximation.h @@ -28,6 +28,9 @@ #include #include #include +#ifndef MESH_GLOBAL_H +#include +#endif #include #include #include diff --git a/src/Mod/Mesh/App/Core/Definitions.h b/src/Mod/Mesh/App/Core/Definitions.h index 454ffb6081..0aadd101db 100644 --- a/src/Mod/Mesh/App/Core/Definitions.h +++ b/src/Mod/Mesh/App/Core/Definitions.h @@ -24,6 +24,10 @@ #ifndef MESH_DEFINITIONS_H #define MESH_DEFINITIONS_H +#ifndef MESH_GLOBAL_H +#include +#endif + // default values #define MESH_MIN_PT_DIST 1.0e-6f #define MESH_MIN_EDGE_LEN 1.0e-3f diff --git a/src/Mod/Mesh/App/Core/Visitor.h b/src/Mod/Mesh/App/Core/Visitor.h index 52594dad98..bac568451e 100644 --- a/src/Mod/Mesh/App/Core/Visitor.h +++ b/src/Mod/Mesh/App/Core/Visitor.h @@ -24,6 +24,10 @@ #ifndef VISITOR_H #define VISITOR_H +#ifndef MESH_GLOBAL_H +#include +#endif + namespace MeshCore { class MeshFacet; diff --git a/src/Mod/Mesh/App/FeatureMeshExport.h b/src/Mod/Mesh/App/FeatureMeshExport.h index fcb380a6af..0c5bf479c3 100644 --- a/src/Mod/Mesh/App/FeatureMeshExport.h +++ b/src/Mod/Mesh/App/FeatureMeshExport.h @@ -27,6 +27,9 @@ #include #include #include +#ifndef MESH_GLOBAL_H +#include +#endif namespace Mesh { diff --git a/src/Mod/Mesh/App/MeshPoint.h b/src/Mod/Mesh/App/MeshPoint.h index c06e4c30a5..beaf2f6017 100644 --- a/src/Mod/Mesh/App/MeshPoint.h +++ b/src/Mod/Mesh/App/MeshPoint.h @@ -24,10 +24,13 @@ #ifndef MESH_MESHPOINT_H #define MESH_MESHPOINT_H +#include #include #include - -#include "Mesh.h" +#include +#ifndef MESH_GLOBAL_H +#include +#endif using Base::Vector3d; @@ -59,4 +62,4 @@ public: } // namespace Mesh -#endif // MESH_MESH_H +#endif // MESH_MESHPOINT_H diff --git a/src/Mod/Mesh/Gui/DlgSettingsImportExportImp.h b/src/Mod/Mesh/Gui/DlgSettingsImportExportImp.h index 9939ec7bcc..68b5f8e99c 100644 --- a/src/Mod/Mesh/Gui/DlgSettingsImportExportImp.h +++ b/src/Mod/Mesh/Gui/DlgSettingsImportExportImp.h @@ -24,6 +24,9 @@ #ifndef MESHGUI_DLGSETTINGSIMPORTEXPORTIMP_H #define MESHGUI_DLGSETTINGSIMPORTEXPORTIMP_H +#ifndef MESH_GLOBAL_H +#include +#endif #include namespace MeshGui { diff --git a/src/Mod/Mesh/Gui/DlgSettingsMeshView.h b/src/Mod/Mesh/Gui/DlgSettingsMeshView.h index 4157d10ab6..2e567094a2 100644 --- a/src/Mod/Mesh/Gui/DlgSettingsMeshView.h +++ b/src/Mod/Mesh/Gui/DlgSettingsMeshView.h @@ -24,6 +24,9 @@ #ifndef MESHGUI_DLGSETTINGSMESHVIEW_H #define MESHGUI_DLGSETTINGSMESHVIEW_H +#ifndef MESH_GLOBAL_H +#include +#endif #include #include diff --git a/src/Mod/Mesh/Gui/DlgSmoothing.h b/src/Mod/Mesh/Gui/DlgSmoothing.h index 49b8047cad..05e37c08bf 100644 --- a/src/Mod/Mesh/Gui/DlgSmoothing.h +++ b/src/Mod/Mesh/Gui/DlgSmoothing.h @@ -27,6 +27,9 @@ #include #include #include +#ifndef MESH_GLOBAL_H +#include +#endif class QButtonGroup; diff --git a/src/Mod/Mesh/Gui/MeshSelection.h b/src/Mod/Mesh/Gui/MeshSelection.h index 53bcef99b7..f3af6c48b5 100644 --- a/src/Mod/Mesh/Gui/MeshSelection.h +++ b/src/Mod/Mesh/Gui/MeshSelection.h @@ -30,6 +30,9 @@ #include #include #include +#ifndef MESH_GLOBAL_H +#include +#endif namespace Gui { class View3DInventorViewer; diff --git a/src/Mod/Mesh/Gui/PropertyEditorMesh.h b/src/Mod/Mesh/Gui/PropertyEditorMesh.h index f8311fdf6f..c08228a580 100644 --- a/src/Mod/Mesh/Gui/PropertyEditorMesh.h +++ b/src/Mod/Mesh/Gui/PropertyEditorMesh.h @@ -24,6 +24,9 @@ #define MESHGUI_PROPERTYEDITOR_MESH_H #include +#ifndef MESH_GLOBAL_H +#include +#endif namespace MeshGui { diff --git a/src/Mod/Mesh/Gui/Segmentation.h b/src/Mod/Mesh/Gui/Segmentation.h index fd9755ffe8..17a1d32f61 100644 --- a/src/Mod/Mesh/Gui/Segmentation.h +++ b/src/Mod/Mesh/Gui/Segmentation.h @@ -27,6 +27,9 @@ #include #include #include +#ifndef MESH_GLOBAL_H +#include +#endif // forward declarations namespace Mesh { class Feature; } diff --git a/src/Mod/Mesh/Gui/SoFCIndexedFaceSet.h b/src/Mod/Mesh/Gui/SoFCIndexedFaceSet.h index 2f85b74d18..cbd54ef8b4 100644 --- a/src/Mod/Mesh/Gui/SoFCIndexedFaceSet.h +++ b/src/Mod/Mesh/Gui/SoFCIndexedFaceSet.h @@ -28,6 +28,9 @@ #include #include #include +#ifndef MESH_GLOBAL_H +#include +#endif class SoGLCoordinateElement; class SoTextureCoordinateBundle; diff --git a/src/Mod/Mesh/Gui/SoPolygon.h b/src/Mod/Mesh/Gui/SoPolygon.h index df418c200a..265d17242a 100644 --- a/src/Mod/Mesh/Gui/SoPolygon.h +++ b/src/Mod/Mesh/Gui/SoPolygon.h @@ -30,6 +30,9 @@ #include #include #include +#ifndef MESH_GLOBAL_H +#include +#endif namespace MeshGui { diff --git a/src/Mod/Mesh/Gui/Workbench.h b/src/Mod/Mesh/Gui/Workbench.h index fba985f949..ce10c46dc3 100644 --- a/src/Mod/Mesh/Gui/Workbench.h +++ b/src/Mod/Mesh/Gui/Workbench.h @@ -24,6 +24,9 @@ #ifndef MESH_WORKBENCH_H #define MESH_WORKBENCH_H +#ifndef MESH_GLOBAL_H +#include +#endif #include namespace MeshGui { diff --git a/src/Mod/Mesh/MeshGlobal.h b/src/Mod/Mesh/MeshGlobal.h new file mode 100644 index 0000000000..bf8d4d3589 --- /dev/null +++ b/src/Mod/Mesh/MeshGlobal.h @@ -0,0 +1,47 @@ +/*************************************************************************** + * Copyright (c) 2019 Werner Mayer * + * * + * This file is part of the FreeCAD CAx development system. * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Library General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + * This library is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU Library General Public License for more details. * + * * + * You should have received a copy of the GNU Library General Public * + * License along with this library; see the file COPYING.LIB. If not, * + * write to the Free Software Foundation, Inc., 59 Temple Place, * + * Suite 330, Boston, MA 02111-1307, USA * + * * + ***************************************************************************/ + +#include + +#ifndef MESH_GLOBAL_H +#define MESH_GLOBAL_H + + +// Mesh +#ifndef MeshExport +#ifdef Mesh_EXPORTS +# define MeshExport FREECAD_DECL_EXPORT +#else +# define MeshExport FREECAD_DECL_IMPORT +#endif +#endif + +// MeshGui +#ifndef MeshGuiExport +#ifdef MeshGui_EXPORTS +# define MeshGuiExport FREECAD_DECL_EXPORT +#else +# define MeshGuiExport FREECAD_DECL_IMPORT +#endif +#endif + +#endif //MESH_GLOBAL_H diff --git a/src/Mod/Points/App/Points.h b/src/Mod/Points/App/Points.h index 643e3ea99e..67fa6e57a8 100644 --- a/src/Mod/Points/App/Points.h +++ b/src/Mod/Points/App/Points.h @@ -34,6 +34,7 @@ #include #include +#include namespace Points { diff --git a/src/Mod/Points/Gui/ViewProvider.h b/src/Mod/Points/Gui/ViewProvider.h index 926fa7f900..47cc7f7e78 100644 --- a/src/Mod/Points/Gui/ViewProvider.h +++ b/src/Mod/Points/Gui/ViewProvider.h @@ -28,6 +28,7 @@ #include #include #include +#include class SoSwitch; diff --git a/src/Mod/Points/Gui/Workbench.h b/src/Mod/Points/Gui/Workbench.h index ebb4c6dbde..99753fc1c3 100644 --- a/src/Mod/Points/Gui/Workbench.h +++ b/src/Mod/Points/Gui/Workbench.h @@ -25,6 +25,7 @@ #define POINTS_WORKBENCH_H #include +#include namespace PointsGui { diff --git a/src/Mod/Points/PointsGlobal.h b/src/Mod/Points/PointsGlobal.h new file mode 100644 index 0000000000..5ba83d6b96 --- /dev/null +++ b/src/Mod/Points/PointsGlobal.h @@ -0,0 +1,47 @@ +/*************************************************************************** + * Copyright (c) 2019 Werner Mayer * + * * + * This file is part of the FreeCAD CAx development system. * + * * + * This library is free software; you can redistribute it and/or * + * modify it under the terms of the GNU Library General Public * + * License as published by the Free Software Foundation; either * + * version 2 of the License, or (at your option) any later version. * + * * + * This library is distributed in the hope that it will be useful, * + * but WITHOUT ANY WARRANTY; without even the implied warranty of * + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * + * GNU Library General Public License for more details. * + * * + * You should have received a copy of the GNU Library General Public * + * License along with this library; see the file COPYING.LIB. If not, * + * write to the Free Software Foundation, Inc., 59 Temple Place, * + * Suite 330, Boston, MA 02111-1307, USA * + * * + ***************************************************************************/ + +#include + +#ifndef POINTS_GLOBAL_H +#define POINTS_GLOBAL_H + + +// Points +#ifndef PointsExport +#ifdef Points_EXPORTS +# define PointsExport FREECAD_DECL_EXPORT +#else +# define PointsExport FREECAD_DECL_IMPORT +#endif +#endif + +// PointsGui +#ifndef PointsGuiExport +#ifdef PointsGui_EXPORTS +# define PointsGuiExport FREECAD_DECL_EXPORT +#else +# define PointsGuiExport FREECAD_DECL_IMPORT +#endif +#endif + +#endif //POINTS_GLOBAL_H