A few visibility changes needed for linking to libtemporal (when building with MSVC)

This commit is contained in:
John Emmas 2021-09-04 12:28:15 +01:00
parent d7d966e02b
commit f6ed73986b
2 changed files with 16 additions and 16 deletions

View file

@ -184,7 +184,7 @@ public:
return Beats (_beats+1, 0);
}
Beats round_to_subdivision (int subdivision, RoundMode dir) const;
LIBTEMPORAL_API Beats round_to_subdivision (int subdivision, RoundMode dir) const;
Beats abs () const {
return Beats (::abs (_beats), ::abs (_ticks));

View file

@ -805,17 +805,17 @@ class /*LIBTEMPORAL_API*/ TempoMap : public PBD::StatefulDestructible
LIBTEMPORAL_API void dump (std::ostream&) const;
static PBD::Signal0<void> MapChanged;
LIBTEMPORAL_API static PBD::Signal0<void> MapChanged;
LIBTEMPORAL_API XMLNode& get_state();
LIBTEMPORAL_API class MementoBinder : public MementoCommandBinder<TempoMap> {
class MementoBinder : public MementoCommandBinder<TempoMap> {
public:
MementoBinder () {}
void set_state (XMLNode const & node, int version) const;
XMLNode& get_state () const { return TempoMap::use()->get_state(); }
std::string type_name() const { return X_("Temporal::TempoMap"); }
void add_state (XMLNode*) {}
LIBTEMPORAL_API MementoBinder () {}
LIBTEMPORAL_API void set_state (XMLNode const & node, int version) const;
LIBTEMPORAL_API XMLNode& get_state () const { return TempoMap::use()->get_state(); }
LIBTEMPORAL_API std::string type_name() const { return X_("Temporal::TempoMap"); }
LIBTEMPORAL_API void add_state (XMLNode*) {}
};
typedef boost::intrusive::member_hook<TempoPoint, boost::intrusive::list_member_hook<>, &TempoPoint::_tempo_hook> TempoHookOption;
@ -1005,14 +1005,14 @@ DEFINE_ENUM_CONVERT(Temporal::TimeDomain);
namespace std {
std::ostream& operator<<(std::ostream& str, Temporal::TempoMapPoint const &);
std::ostream& operator<<(std::ostream& str, Temporal::Tempo const &);
std::ostream& operator<<(std::ostream& str, Temporal::Meter const &);
std::ostream& operator<<(std::ostream& str, Temporal::Point const &);
std::ostream& operator<<(std::ostream& str, Temporal::TempoPoint const &);
std::ostream& operator<<(std::ostream& str, Temporal::MeterPoint const &);
std::ostream& operator<<(std::ostream& str, Temporal::MusicTimePoint const &);
std::ostream& operator<<(std::ostream& str, Temporal::TempoMetric const &);
LIBTEMPORAL_API std::ostream& operator<<(std::ostream& str, Temporal::TempoMapPoint const &);
LIBTEMPORAL_API std::ostream& operator<<(std::ostream& str, Temporal::Tempo const &);
LIBTEMPORAL_API std::ostream& operator<<(std::ostream& str, Temporal::Meter const &);
LIBTEMPORAL_API std::ostream& operator<<(std::ostream& str, Temporal::Point const &);
LIBTEMPORAL_API std::ostream& operator<<(std::ostream& str, Temporal::TempoPoint const &);
LIBTEMPORAL_API std::ostream& operator<<(std::ostream& str, Temporal::MeterPoint const &);
LIBTEMPORAL_API std::ostream& operator<<(std::ostream& str, Temporal::MusicTimePoint const &);
LIBTEMPORAL_API std::ostream& operator<<(std::ostream& str, Temporal::TempoMetric const &);
}
#endif /* __temporal_tempo_h__ */