mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-08-17 02:49:12 +00:00
b5c4eb3b6f
* CMake: moved setting link directories before all the projects. * Added IfcParse_Export header for declaring export macro. * Added IFCPARSE_STATIC_DEFINE macro to all projects. * Added include for export macro to swig file. * Added IfcParse_EXPORT macro for all classes in headers generated by express parser. * Allow removing boost.regex dependency by defining macro IFCPARSE_NO_REGEX. * Fixed bug in deletion of ICU converter. * Added export macro to most of the classes across headers * Fixed memory leak: delete nested IfcAbstractEntity in EntityArgument. * Fixed memory leak in destructor of IfcWritableEntity (args values).
23 lines
478 B
C
23 lines
478 B
C
#ifndef IfcParse_EXPORT_H
|
|
#define IfcParse_EXPORT_H
|
|
|
|
#ifdef IFCPARSE_STATIC_DEFINE
|
|
#define IfcParse_EXPORT
|
|
#else
|
|
#ifdef _WIN32
|
|
#ifndef IfcParse_EXPORT
|
|
#ifdef IfcParse_EXPORTS
|
|
#define IfcParse_EXPORT __declspec(dllexport)
|
|
#else
|
|
#define IfcParse_EXPORT __declspec(dllimport)
|
|
#endif
|
|
#endif
|
|
#elif __linux__
|
|
#define IfcParse_EXPORT __attribute__((visibility("default")))
|
|
#else
|
|
#define IfcParse_EXPORT
|
|
#endif
|
|
#endif
|
|
|
|
#endif
|