Commit d8f56549 authored by Martin Marinov's avatar Martin Marinov

Merge some minor fixes for static library build compatibility

parents 588861ac ba35e1ff
......@@ -13,9 +13,16 @@
#define BASEDLLEXPORT
#define BASEDLLEXPORTONLY
#endif
#else
#define BASEDLLEXPORT
#define BASEDLLEXPORTONLY
#else // non-Windows symbols export:
#ifdef BASEDLL
// only export symbols if BASEDLL is defined (same behavior as Windows)
#define BASEDLLEXPORT __attribute__((visibility("default")))
#define BASEDLLEXPORTONLY BASEDLLEXPORT
#else // BASEDLL not defined
// this allows building Base as static library without exposing its symbols
#define BASEDLLEXPORT
#define BASEDLLEXPORTONLY
#endif // BASEDLL
#endif
#endif
......
Markdown is supported
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