From dda7612479fc8590aa3a367a06da7ba519035af8 Mon Sep 17 00:00:00 2001 From: John Emmas Date: Sat, 4 Sep 2021 12:35:44 +0100 Subject: [PATCH] A few visibility changes needed for linking to libpbd (when building with MSVC) --- libs/pbd/pbd/glib_event_source.h | 4 ++-- libs/pbd/pbd/pcg_rand.h | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/libs/pbd/pbd/glib_event_source.h b/libs/pbd/pbd/glib_event_source.h index 65752fbd53..3a90610f99 100644 --- a/libs/pbd/pbd/glib_event_source.h +++ b/libs/pbd/pbd/glib_event_source.h @@ -5,7 +5,7 @@ #include -class GlibEventLoopSource : public Glib::Source +class LIBPBD_API GlibEventLoopSource : public Glib::Source { public: GlibEventLoopSource () {}; @@ -16,7 +16,7 @@ class GlibEventLoopSource : public Glib::Source }; -class GlibEventLoopCallback : public GlibEventLoopSource +class LIBPBD_API GlibEventLoopCallback : public GlibEventLoopSource { public: GlibEventLoopCallback (boost::function callback) : _callback (callback) {} diff --git a/libs/pbd/pbd/pcg_rand.h b/libs/pbd/pbd/pcg_rand.h index 271ed17370..596b28569d 100644 --- a/libs/pbd/pbd/pcg_rand.h +++ b/libs/pbd/pbd/pcg_rand.h @@ -20,6 +20,7 @@ #define _pbd_pcg_rand_ #include +#include "pbd/libpbd_visibility.h" namespace PBD { @@ -29,7 +30,7 @@ namespace PBD * To be used in cases where an efficient and realtime-safe random * generator is needed. */ -class PCGRand +class LIBPBD_API PCGRand { public: PCGRand ();