summaryrefslogtreecommitdiff
path: root/libs/pbd/pbd/stacktrace.h
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2013-10-16 23:30:28 -0400
committerPaul Davis <paul@linuxaudiosystems.com>2013-10-16 23:30:28 -0400
commitc5115c9a3c8ce6639f37e0b429e0498bb522d913 (patch)
tree667e48ff6ec80f274c7eafda4e44dceaaaeb342b /libs/pbd/pbd/stacktrace.h
parentcb3abec9665b7a69702294e5a6ffdd26f54885c3 (diff)
add export visibility control to libpbd (works thus far on linux/gcc)
Diffstat (limited to 'libs/pbd/pbd/stacktrace.h')
-rw-r--r--libs/pbd/pbd/stacktrace.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/libs/pbd/pbd/stacktrace.h b/libs/pbd/pbd/stacktrace.h
index 94d07cab96..c4381bc0ed 100644
--- a/libs/pbd/pbd/stacktrace.h
+++ b/libs/pbd/pbd/stacktrace.h
@@ -34,12 +34,15 @@
#include <cstdlib>
#endif
+#include "pbd/libpbd_visibility.h"
+
+
namespace PBD {
- void stacktrace (std::ostream& out, int levels = 0);
- void trace_twb();
+ LIBPBD_API void stacktrace (std::ostream& out, int levels = 0);
+ LIBPBD_API void trace_twb();
template<typename T>
-class thing_with_backtrace
+class LIBPBD_API thing_with_backtrace
{
public:
thing_with_backtrace () {
@@ -108,8 +111,8 @@ private:
static Glib::Threads::Mutex all_mutex;
};
-template<typename T> std::list<PBD::thing_with_backtrace<T> *> PBD::thing_with_backtrace<T>::all;
-template<typename T> Glib::Threads::Mutex PBD::thing_with_backtrace<T>::all_mutex;
+template<typename T> LIBPBD_API std::list<PBD::thing_with_backtrace<T> *> PBD::thing_with_backtrace<T>::all;
+template<typename T> LIBPBD_API Glib::Threads::Mutex PBD::thing_with_backtrace<T>::all_mutex;
} // namespace PBD