Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesLorenz committed Jan 13, 2024
1 parent bdabf00 commit eede608
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
14 changes: 6 additions & 8 deletions lo/lo_cpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
#include <cassert>
#endif

#define LO_EXPORT __attribute__((visibility("default")))

/**
* \file lo_cpp.h The liblo C++ wrapper
*/
Expand Down Expand Up @@ -149,7 +147,7 @@ namespace lo {
class ServerThread;

/** \brief Class representing an OSC method, proxy for \ref lo_method. */
class LO_EXPORT Method
class Method
{
public:
Method(lo_method m) : method(m) {}
Expand All @@ -161,7 +159,7 @@ namespace lo {

/** \brief Class representing an OSC destination address, proxy
* for \ref lo_address. */
class LO_EXPORT Address
class Address
{
public:
Address(const string_type &host, const num_string_type &port,
Expand Down Expand Up @@ -321,7 +319,7 @@ namespace lo {
};

/** \brief Class representing an OSC message, proxy for \ref lo_message. */
class LO_EXPORT Message
class Message
{
public:
Message()
Expand Down Expand Up @@ -498,7 +496,7 @@ namespace lo {
};

/** \brief Class representing a local OSC server, proxy for \ref lo_server. */
class LO_EXPORT Server
class Server
{
public:
/** Constructor. */
Expand Down Expand Up @@ -752,7 +750,7 @@ namespace lo {
};

/** \brief Class representing a server thread, proxy for \ref lo_server_thread. */
class LO_EXPORT ServerThread : public Server
class ServerThread : public Server
{
public:
ServerThread(const num_string_type &port, lo_err_handler err_h=0)
Expand Down Expand Up @@ -967,7 +965,7 @@ namespace lo {
};

/** \brief Class representing an OSC bundle, proxy for \ref lo_bundle. */
class LO_EXPORT Bundle
class Bundle
{
public:
template <typename T>
Expand Down
6 changes: 5 additions & 1 deletion lo/lo_osc_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,18 @@ typedef union {
#endif
#endif

#define LO_EXPORT __attribute__((visibility("default")))

/** \brief A timetag constant representing "now". */
#if defined(USE_ANSI_C) || defined(DLL_EXPORT)
lo_timetag lo_get_tt_immediate();
lo_timetag LO_EXPORT lo_get_tt_immediate();
#define LO_TT_IMMEDIATE lo_get_tt_immediate()
#else // !USE_ANSI_C
#define LO_TT_IMMEDIATE ((lo_timetag){0U,1U})
#endif // USE_ANSI_C

#undef LO_EXPORT

/** @} */

#endif

0 comments on commit eede608

Please sign in to comment.