From 7c363fe1f7958a7e55b4c5d7dbddfd0e34ae7ead Mon Sep 17 00:00:00 2001 From: JP Cimalando Date: Thu, 9 Aug 2018 12:49:45 +0200 Subject: fix the link step on Windows --- RtAudio.h | 6 +++++- rtaudio_c.h | 2 +- 2 files changed, 6 insertions(+), 2 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" )) ) diff --git a/rtaudio_c.h b/rtaudio_c.h index 550f480..e4cdf82 100644 --- a/rtaudio_c.h +++ b/rtaudio_c.h @@ -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"))) -- cgit v1.2.3