Auto-monitor == Cue for MIDI tracks.
[ardour.git] / libs / zita-resampler / zita-resampler / zresampler_visibility.h
1 #ifndef __libzreampler_visibility_h__
2 #define __libzreampler_visibility_h__
3
4 #if defined(COMPILER_MSVC)
5   #define LIBZRESAMPLER_DLL_IMPORT __declspec(dllimport)
6   #define LIBZRESAMPLER_DLL_EXPORT __declspec(dllexport)
7   #define LIBZRESAMPLER_DLL_LOCAL
8 #else
9   #define LIBZRESAMPLER_DLL_IMPORT __attribute__ ((visibility ("default")))
10   #define LIBZRESAMPLER_DLL_EXPORT __attribute__ ((visibility ("default")))
11   #define LIBZRESAMPLER_DLL_LOCAL  __attribute__ ((visibility ("hidden")))
12 #endif
13
14 #ifdef LIBZRESAMPLER_STATIC // libzita-reampler is a DLL
15   #define LIBZRESAMPLER_API
16   #define LIBZRESAMPLER_LOCAL
17   #define LIBZRESAMPLER_TEMPLATE_API
18   #define LIBZRESAMPLER_TEMPLATE_MEMBER_API
19 #else
20   #ifdef LIBZRESAMPLER_DLL_EXPORTS // defined if we are building the libzita-resampler DLL (instead of using it)
21     #define LIBZRESAMPLER_API LIBZRESAMPLER_DLL_EXPORT
22     #define LIBZRESAMPLER_TEMPLATE_API LIBZRESAMPLER_TEMPLATE_DLL_EXPORT
23     #define LIBZRESAMPLER_TEMPLATE_MEMBER_API LIBZRESAMPLER_TEMPLATE_MEMBER_DLL_EXPORT
24   #else
25     #define LIBZRESAMPLER_API LIBZRESAMPLER_DLL_IMPORT
26     #define LIBZRESAMPLER_TEMPLATE_API LIBZRESAMPLER_TEMPLATE_DLL_IMPORT
27     #define LIBZRESAMPLER_TEMPLATE_MEMBER_API LIBZRESAMPLER_TEMPLATE_MEMBER_DLL_IMPORT
28   #endif
29   #define LIBZRESAMPLER_LOCAL LIBZRESAMPLER_DLL_LOCAL
30 #endif
31
32 #endif