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:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user