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/evoral/evoral/visibility.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'libs/evoral') diff --git a/libs/evoral/evoral/visibility.h b/libs/evoral/evoral/visibility.h index 17c0b7730b..fc6d23a401 100644 --- a/libs/evoral/evoral/visibility.h +++ b/libs/evoral/evoral/visibility.h @@ -20,12 +20,7 @@ #ifndef __libevoral_visibility_h__ #define __libevoral_visibility_h__ -/* _WIN32 is defined by most compilers targetting Windows, but within the - * evoral 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 LIBEVORAL_DLL_IMPORT __declspec(dllimport) #define LIBEVORAL_DLL_EXPORT __declspec(dllexport) #define LIBEVORAL_DLL_LOCAL -- cgit v1.2.3