summaryrefslogtreecommitdiff
path: root/libs/midi++2/midi++
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2013-12-05 21:11:18 +1000
committerTim Mayberry <mojofunk@gmail.com>2013-12-05 21:11:18 +1000
commit3a885d6177c280f8cc225a309c4a961742915a0a (patch)
treeb1ca6443786e0e9f85e0e2cf3e83d3b8997f93d5 /libs/midi++2/midi++
parentccebb050e417a6aea32811c1e1f06abaa3f85e86 (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/midi++2/midi++')
-rw-r--r--libs/midi++2/midi++/libmidi_visibility.h7
1 files changed, 1 insertions, 6 deletions
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