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.
This commit is contained in:
wmayer
2023-08-08 16:42:48 +02:00
committed by wwmayer
parent a6202bc3ce
commit 40a9f47489
2 changed files with 9 additions and 13 deletions

View File

@@ -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

View File

@@ -25,19 +25,6 @@
#include <FCConfig.h>
// 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