From 4898b95e933597fccd8e024c7847c7881204d8ac Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 3 Sep 2013 08:33:26 -0400 Subject: [PATCH] add comment --- libs/ardour/ardour/visibility.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/ardour/ardour/visibility.h b/libs/ardour/ardour/visibility.h index 61b75064ac..09287b877d 100644 --- a/libs/ardour/ardour/visibility.h +++ b/libs/ardour/ardour/visibility.h @@ -20,7 +20,12 @@ #ifndef __libardour_visibility_h__ #define __libardour_visibility_h__ -#if defined _WIN32 || defined __CYGWIN__ +/* _WIN32 is defined by most compilers targetting Windows, but within the + * ardour source tree, we also define COMPILER_MSVC or COMPILER_MINGW depending + * on how a Windows build is built. + */ + +#if defined _WIN32 || defined __CYGWIN__ || defined(COMPILER_MSVC) || defined(COMPILER_MINGW) #define LIBARDOUR_HELPER_DLL_IMPORT __declspec(dllimport) #define LIBARDOUR_HELPER_DLL_EXPORT __declspec(dllexport) #define LIBARDOUR_HELPER_DLL_LOCAL