add comment
authorPaul Davis <paul@linuxaudiosystems.com>
Tue, 3 Sep 2013 12:33:26 +0000 (08:33 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Tue, 3 Sep 2013 12:33:26 +0000 (08:33 -0400)
libs/ardour/ardour/visibility.h

index 61b75064ac4848902bb99f24ec64fb8c523acc15..09287b877d317fea3a8d8652b2693a1d7e18e8d5 100644 (file)
 #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