Points: include header with export macros

This commit is contained in:
wmayer
2022-03-24 20:46:47 +01:00
parent d16ce3759f
commit 924d779fc7
10 changed files with 41 additions and 65 deletions

View File

@@ -28,6 +28,7 @@
#include <Base/BaseClass.h>
#include <Base/Vector3D.h>
#include <Mod/Measure/MeasureGlobal.h>
class TopoDS_Shape;

View File

@@ -26,17 +26,6 @@
#include <FCConfig.h>
// Exporting of App classes
#ifdef FC_OS_WIN32
# define MeasureExport __declspec(dllexport)
# define PartExport __declspec(dllimport)
# define MeshExport __declspec(dllimport)
#else // for Linux
# define MeasureExport
# define PartExport
# define MeshExport
#endif
#ifdef FC_OS_WIN32
#define WIN32_LEAN_AND_MEAN
#ifndef NOMINMAX

View File

@@ -0,0 +1,38 @@
/***************************************************************************
* Copyright (c) 2021 Werner Mayer <wmayer[at]users.sourceforge.net> *
* *
* 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 <FCGlobal.h>
#ifndef MEASURE_GLOBAL_H
#define MEASURE_GLOBAL_H
// Measure
#ifndef MeasureExport
#ifdef Measure_EXPORTS
# define MeasureExport FREECAD_DECL_EXPORT
#else
# define MeasureExport FREECAD_DECL_IMPORT
#endif
#endif
#endif //MEASURE_GLOBAL_H

View File

@@ -26,13 +26,6 @@
#include <FCConfig.h>
// Exporting of App classes
#ifdef FC_OS_WIN32
# define PointsExport __declspec(dllexport)
#else // for Linux
# define PointsExport
#endif
// here get the warnings of too long specifiers disabled (needed for VC6)
#ifdef _MSC_VER
# pragma warning( disable : 4181 )

View File

@@ -26,15 +26,6 @@
#include <FCConfig.h>
// Importing of App classes
#ifdef FC_OS_WIN32
# define PointsExport __declspec(dllimport)
# define PointsGuiExport __declspec(dllexport)
#else // for Linux
# define PointsExport
# define PointsGuiExport
#endif
#ifdef FC_OS_WIN32
# ifndef NOMINMAX
# define NOMINMAX

View File

@@ -33,6 +33,7 @@
#include <math_Matrix.hxx>
#include <Base/Vector3D.h>
#include <Mod/ReverseEngineering/ReverseEngineeringGlobal.h>
namespace Base {
class SequencerLauncher;

View File

@@ -26,19 +26,6 @@
#include <FCConfig.h>
// Exporting of App classes
#ifdef FC_OS_WIN32
# define ReenExport __declspec(dllexport)
# define PartExport __declspec(dllimport)
# define MeshExport __declspec(dllimport)
# define PointsExport __declspec(dllimport)
#else // for Linux
# define ReenExport
# define PartExport
# define MeshExport
# define PointsExport
#endif
#ifdef _MSC_VER
# pragma warning(disable : 4181)
# pragma warning(disable : 4267)

View File

@@ -25,23 +25,6 @@
#include <FCConfig.h>
// Importing of App classes
#ifdef FC_OS_WIN32
# define ReenExport __declspec(dllimport)
# define ReenGuiExport __declspec(dllexport)
# define PartExport __declspec(dllimport)
# define MeshExport __declspec(dllimport)
# define MeshGuiExport __declspec(dllimport)
# define PointsExport __declspec(dllimport)
#else // for Linux
# define ReenExport
# define ReenGuiExport
# define PartExport
# define MeshExport
# define MeshGuiExport
# define PointsExport
#endif
#ifdef _MSC_VER
# pragma warning(disable : 4275)
#endif

View File

@@ -31,7 +31,7 @@ namespace ReverseEngineeringGui {
/**
* @author Werner Mayer
*/
class ReenGuiExport Workbench : public Gui::StdWorkbench
class Workbench : public Gui::StdWorkbench
{
TYPESYSTEM_HEADER();

View File

@@ -26,13 +26,6 @@
#include <FCConfig.h>
// Importing of App classes
#ifdef FC_OS_WIN32
# define AppTestGuiExport __declspec(dllexport)
#else // for Linux
# define AppTestGuiExport
#endif
#ifdef _PreComp_
// here get the warnings of too long specifiers disabled (needed for VC6)