From 3a885d6177c280f8cc225a309c4a961742915a0a Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Thu, 5 Dec 2013 21:11:18 +1000 Subject: Only use __declspec(dllimport/dllexport) for MSVC compiler Use the gcc visibility attributes when building with the MinGW compiler(gcc). GCC also supports the __declspec syntax but it will not compile at the moment until the issues(which may not even be exactly the same issues as with MSVC) are resolved. --- libs/midi++2/midi++/libmidi_visibility.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libs/midi++2/midi++') diff --git a/libs/midi++2/midi++/libmidi_visibility.h b/libs/midi++2/midi++/libmidi_visibility.h index 51b061bdd8..17b57045cf 100644 --- a/libs/midi++2/midi++/libmidi_visibility.h +++ b/libs/midi++2/midi++/libmidi_visibility.h @@ -20,12 +20,7 @@ #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 -- cgit v1.2.3