Commit 36c6980d authored by Martin Marinov's avatar Martin Marinov
Browse files

Change CoMISoDefines.hh to only export symbols if COMISODLL is defined (same...

Change CoMISoDefines.hh to only export symbols if COMISODLL is defined (same behavior as Windows) to allow building CoMISo as static library without exposing its symbols
parent c5f0e0b2
...@@ -33,12 +33,19 @@ ...@@ -33,12 +33,19 @@
#define COMISODLLEXPORTONLY __declspec(dllexport) #define COMISODLLEXPORTONLY __declspec(dllexport)
#endif #endif
#else #else
#define COMISODLLEXPORT #define COMISODLLEXPORT
#define COMISODLLEXPORTONLY #define COMISODLLEXPORTONLY
#endif #endif
#else #else // non-Windows symbols export:
#define COMISODLLEXPORT __attribute__((visibility("default"))) #ifdef COMISODLL
#define COMISODLLEXPORTONLY COMISODLLEXPORT // only export symbols if COMISODLL is defined (same behavior as Windows)
#define COMISODLLEXPORT __attribute__((visibility("default")))
#define COMISODLLEXPORTONLY COMISODLLEXPORT
#else // COMISODLL not defined
// this allows building CoMISo as static library without exposing its symbols
#define COMISODLLEXPORT
#define COMISODLLEXPORTONLY
#endif // COMISODLL
#endif #endif
#endif #endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment