summaryrefslogtreecommitdiff
path: root/RtAudio.h
diff options
context:
space:
mode:
authorJP Cimalando <jpcima@users.noreply.github.com>2018-08-09 12:49:45 +0200
committerJP Cimalando <jpcima@users.noreply.github.com>2018-08-09 12:49:45 +0200
commit7c363fe1f7958a7e55b4c5d7dbddfd0e34ae7ead (patch)
tree1c9cef5d9a48abec550bc23cb914790a097d8fe3 /RtAudio.h
parent1abbca05a6f76b8bf815be931102314a042f1aa0 (diff)
fix the link step on Windows
Diffstat (limited to 'RtAudio.h')
-rw-r--r--RtAudio.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/RtAudio.h b/RtAudio.h
index 976ada0..5b71fe8 100644
--- a/RtAudio.h
+++ b/RtAudio.h
@@ -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" )) )