Commit fc0226c1 authored by Martin Marinov's avatar Martin Marinov

Fix the non-Windows static library build

parent dd98e962
......@@ -14,12 +14,15 @@
#define BASEDLLEXPORTONLY
#endif
#else // non-Windows symbols export:
// only export symbols if BASEDLL is defined (same behavior as Windows)
// this allows building Base as static library without exposing its symbols
#ifdef BASEDLL
// only export symbols if BASEDLL is defined (same behavior as Windows)
#define BASEDLLEXPORT __attribute__((visibility("default")))
#define BASEDLLEXPORTONLY BASEDLLEXPORT
#endif//BASEDLL
#else // BASEDELL 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