6b2b6d94166a — Chris Cannam a month ago
Make dllexport suppressible
2 files changed, 4 insertions(+), 0 deletions(-)

M rubberband/RubberBandStretcher.h
M rubberband/rubberband-c.h
M rubberband/RubberBandStretcher.h +2 -0
@@ 30,7 30,9 @@ 
 
 #undef RUBBERBAND_DLLEXPORT
 #ifdef _MSC_VER
+#ifndef RUBBERBAND_STATIC
 #define RUBBERBAND_DLLEXPORT __declspec(dllexport)
+#endif
 #else
 #define RUBBERBAND_DLLEXPORT
 #endif

          
M rubberband/rubberband-c.h +2 -0
@@ 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