Commit dd98e962 authored by Martin Marinov's avatar Martin Marinov

Change BaseDefines.hh to only export symbols if BASEDLL is defined (same...

Change BaseDefines.hh to only export symbols if BASEDLL is defined (same behavior as Windows) to allow building Base as static library without exposing its symbols
parent 3757c044
......@@ -13,9 +13,13 @@
#define BASEDLLEXPORT
#define BASEDLLEXPORTONLY
#endif
#else
#define BASEDLLEXPORT __attribute__((visibility("default")))
#define BASEDLLEXPORTONLY BASEDLLEXPORT
#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
#define BASEDLLEXPORT __attribute__((visibility("default")))
#define BASEDLLEXPORTONLY BASEDLLEXPORT
#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