fix crash when copy'ing latent plugins
[ardour.git] / libs / midi++2 / midi++ / libmidi_visibility.h
index 51b061bdd87ffd20a3c5ca7f51c0386017af46ac..5c64196e1a4032865485eb4b701697802eb6674e 100644 (file)
 #ifndef __libmidi_libmidi_visibility_h__
 #define __libmidi_libmidi_visibility_h__
 
-/* _WIN32 is defined by most compilers targetting Windows, but within the
- * midi 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)
+#if defined(COMPILER_MSVC)
   #define LIBMIDIPP_DLL_IMPORT __declspec(dllimport)
   #define LIBMIDIPP_DLL_EXPORT __declspec(dllexport)
   #define LIBMIDIPP_DLL_LOCAL
@@ -43,7 +38,7 @@
      #define LIBMIDIPP_API LIBMIDIPP_DLL_EXPORT
   #else
      #define LIBMIDIPP_API LIBMIDIPP_DLL_IMPORT
-  #endif 
+  #endif
   #define    LIBMIDIPP_LOCAL LIBMIDIPP_DLL_LOCAL
 #endif