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