mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 20:26:30 +01:00
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.
This commit is contained in:
parent
ccebb050e4
commit
3a885d6177
7 changed files with 7 additions and 42 deletions
|
|
@ -20,12 +20,7 @@
|
|||
#ifndef __libardour_libardour_visibility_h__
|
||||
#define __libardour_libardour_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 LIBARDOUR_DLL_IMPORT __declspec(dllimport)
|
||||
#define LIBARDOUR_DLL_EXPORT __declspec(dllexport)
|
||||
#define LIBARDOUR_DLL_LOCAL
|
||||
|
|
|
|||
|
|
@ -20,12 +20,7 @@
|
|||
#ifndef __libaudiographer_visibility_h__
|
||||
#define __libaudiographer_visibility_h__
|
||||
|
||||
/* _WIN32 is defined by most compilers targetting Windows, but within the
|
||||
* audiographer 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 LIBAUDIOGRAPHER_DLL_IMPORT __declspec(dllimport)
|
||||
#define LIBAUDIOGRAPHER_DLL_EXPORT __declspec(dllexport)
|
||||
#define LIBAUDIOGRAPHER_DLL_LOCAL
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -20,12 +20,7 @@
|
|||
#ifndef __libgtkmm2ext_visibility_h__
|
||||
#define __libgtkmm2ext_visibility_h__
|
||||
|
||||
/* _WIN32 is defined by most compilers targetting Windows, but within the
|
||||
* gtkmm2ext 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 LIBGTKMM2EXT_DLL_IMPORT __declspec(dllimport)
|
||||
#define LIBGTKMM2EXT_DLL_EXPORT __declspec(dllexport)
|
||||
#define LIBGTKMM2EXT_DLL_LOCAL
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -20,12 +20,7 @@
|
|||
#ifndef __libcontrolcp_visibility_h__
|
||||
#define __libcontrolcp_visibility_h__
|
||||
|
||||
/* _WIN32 is defined by most compilers targetting Windows, but within the
|
||||
* controlcp 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 LIBCONTROLCP_DLL_IMPORT __declspec(dllimport)
|
||||
#define LIBCONTROLCP_DLL_EXPORT __declspec(dllexport)
|
||||
#define LIBCONTROLCP_DLL_LOCAL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue