diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2013-12-05 21:11:18 +1000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2013-12-05 21:11:18 +1000 |
commit | 3a885d6177c280f8cc225a309c4a961742915a0a (patch) | |
tree | b1ca6443786e0e9f85e0e2cf3e83d3b8997f93d5 /libs/pbd | |
parent | ccebb050e417a6aea32811c1e1f06abaa3f85e86 (diff) |
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.
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/pbd/libpbd_visibility.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/libs/pbd/pbd/libpbd_visibility.h b/libs/pbd/pbd/libpbd_visibility.h index 84a64c351a..0fcebd554f 100644 --- a/libs/pbd/pbd/libpbd_visibility.h +++ b/libs/pbd/pbd/libpbd_visibility.h @@ -20,12 +20,7 @@ #ifndef __libpbd_libpbd_visibility_h__ #define __libpbd_libpbd_visibility_h__ -/* _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) +#if defined(COMPILER_MSVC) #define LIBPBD_DLL_IMPORT __declspec(dllimport) #define LIBPBD_DLL_EXPORT __declspec(dllexport) #define LIBPBD_DLL_LOCAL |