Browse Source

defines for exporting symbols on GCC

tags/5.1.0
IOhannes m zmölnig 7 years ago
parent
commit
004d9c461d
1 changed files with 13 additions and 3 deletions
  1. +13
    -3
      RtAudio.h

+ 13
- 3
RtAudio.h View File

@@ -47,6 +47,16 @@


#define RTAUDIO_VERSION "5.0.0" #define RTAUDIO_VERSION "5.0.0"


#if defined _WIN32 || defined __CYGWIN__
#define RTAUDIO_DLL_PUBLIC
#else
#if __GNUC__ >= 4
#define RTAUDIO_DLL_PUBLIC __attribute__( (visibility( "default" )) )
#else
#define RTAUDIO_DLL_PUBLIC
#endif
#endif

#include <string> #include <string>
#include <vector> #include <vector>
#include <stdexcept> #include <stdexcept>
@@ -200,7 +210,7 @@ typedef int (*RtAudioCallback)( void *outputBuffer, void *inputBuffer,
*/ */
/************************************************************************/ /************************************************************************/


class RtAudioError : public std::runtime_error
class RTAUDIO_DLL_PUBLIC RtAudioError : public std::runtime_error
{ {
public: public:
//! Defined RtAudioError types. //! Defined RtAudioError types.
@@ -260,7 +270,7 @@ typedef void (*RtAudioErrorCallback)( RtAudioError::Type type, const std::string


class RtApi; class RtApi;


class RtAudio
class RTAUDIO_DLL_PUBLIC RtAudio
{ {
public: public:


@@ -671,7 +681,7 @@ class S24 {


#include <sstream> #include <sstream>


class RtApi
class RTAUDIO_DLL_PUBLIC RtApi
{ {
public: public:




Loading…
Cancel
Save