From 40a9f474895de7d8fe3fbc4e5886da11a280120f Mon Sep 17 00:00:00 2001 From: wmayer Date: Tue, 8 Aug 2023 16:42:48 +0200 Subject: [PATCH] Path: make export macro accessible in header file It's not recommended any more to keep the export macro in the PreCompiled.h because many IDEs fail to fetch the export macro and raise a parsing error instead. --- src/Mod/Path/PathGlobal.h | 9 +++++++++ src/Mod/Path/PathSimulator/App/PreCompiled.h | 13 ------------- 2 files changed, 9 insertions(+), 13 deletions(-) diff --git a/src/Mod/Path/PathGlobal.h b/src/Mod/Path/PathGlobal.h index ce2a5f774f..04e0505d95 100644 --- a/src/Mod/Path/PathGlobal.h +++ b/src/Mod/Path/PathGlobal.h @@ -44,4 +44,13 @@ #endif #endif +// PathSimulator +#ifndef PathSimulatorExport +#ifdef PathSimulator_EXPORTS +# define PathSimulatorExport FREECAD_DECL_EXPORT +#else +# define PathSimulatorExport FREECAD_DECL_IMPORT +#endif +#endif + #endif //PATH_GLOBAL_H diff --git a/src/Mod/Path/PathSimulator/App/PreCompiled.h b/src/Mod/Path/PathSimulator/App/PreCompiled.h index c8463f6304..14ea3ae0a3 100644 --- a/src/Mod/Path/PathSimulator/App/PreCompiled.h +++ b/src/Mod/Path/PathSimulator/App/PreCompiled.h @@ -25,19 +25,6 @@ #include -// Exporting of App classes -#ifdef FC_OS_WIN32 -# define PathSimulatorExport __declspec(dllexport) -# define PathExport __declspec(dllimport) -# define PartExport __declspec(dllimport) -# define MeshExport __declspec(dllimport) -#else // for Linux -# define PathSimulatorExport -# define PathExport -# define PartExport -# define MeshExport -#endif - #ifdef _PreComp_ // standard