From 5a4e3a8466c0bc87cd2e84668a41fd0bfb196f7e Mon Sep 17 00:00:00 2001 From: Chris Cannam Date: Wed, 7 Feb 2024 13:48:30 +0000 Subject: [PATCH] Fix export symbol definitions --- rubberband/RubberBandStretcher.h | 2 ++ rubberband/rubberband-c.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/rubberband/RubberBandStretcher.h b/rubberband/RubberBandStretcher.h index 79234f4f..b456c1b5 100644 --- a/rubberband/RubberBandStretcher.h +++ b/rubberband/RubberBandStretcher.h @@ -32,6 +32,8 @@ #ifdef _MSC_VER #ifndef RUBBERBAND_STATIC #define RUBBERBAND_DLLEXPORT __declspec(dllexport) +#else +#define RUBBERBAND_DLLEXPORT #endif #else #define RUBBERBAND_DLLEXPORT diff --git a/rubberband/rubberband-c.h b/rubberband/rubberband-c.h index 39674824..3e700a6b 100644 --- a/rubberband/rubberband-c.h +++ b/rubberband/rubberband-c.h @@ -37,6 +37,8 @@ extern "C" { #ifdef _MSC_VER #ifndef RUBBERBAND_STATIC #define RB_EXTERN extern __declspec(dllexport) +#else +#define RB_EXTERN extern #endif #else #define RB_EXTERN extern