Browse Source

fix the link step on Windows

tags/5.1.0
JP Cimalando 6 years ago
parent
commit
7c363fe1f7
2 changed files with 6 additions and 2 deletions
  1. +5
    -1
      RtAudio.h
  2. +1
    -1
      rtaudio_c.h

+ 5
- 1
RtAudio.h View File

@@ -48,7 +48,11 @@
#define RTAUDIO_VERSION "5.0.0"

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


+ 1
- 1
rtaudio_c.h View File

@@ -2,7 +2,7 @@
#define RTAUDIO_C_H

#if defined(RTAUDIO_EXPORT)
#ifdef WIN32
#if defined _WIN32 || defined __CYGWIN__
#define RTAUDIOAPI __declspec(dllexport)
#else
#define RTAUDIOAPI __attribute__((visibility("default")))


Loading…
Cancel
Save