Skip to content

Commit

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

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

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

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

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

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

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

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

/** \brief Class representing an OSC bundle, proxy for \ref lo_bundle. */
class Bundle
class LO_EXPORT Bundle
{
public:
template <typename T>
Expand Down

0 comments on commit bdabf00

Please sign in to comment.