From 95cbb62dfe3009800f327631b1071be0e0180f69 Mon Sep 17 00:00:00 2001 From: Chris Cannam Date: Fri, 5 Jan 2024 15:38:06 +0000 Subject: [PATCH] Make dllexport suppressible --- 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 6b883a87..79234f4f 100644 --- a/rubberband/RubberBandStretcher.h +++ b/rubberband/RubberBandStretcher.h @@ -30,7 +30,9 @@ #undef RUBBERBAND_DLLEXPORT #ifdef _MSC_VER +#ifndef RUBBERBAND_STATIC #define RUBBERBAND_DLLEXPORT __declspec(dllexport) +#endif #else #define RUBBERBAND_DLLEXPORT #endif diff --git a/rubberband/rubberband-c.h b/rubberband/rubberband-c.h index 73d1216b..39674824 100644 --- a/rubberband/rubberband-c.h +++ b/rubberband/rubberband-c.h @@ -35,7 +35,9 @@ extern "C" { #undef RB_EXTERN #ifdef _MSC_VER +#ifndef RUBBERBAND_STATIC #define RB_EXTERN extern __declspec(dllexport) +#endif #else #define RB_EXTERN extern #endif