Go to the documentation of this file.
20 #ifndef __libevoral_visibility_h__
21 #define __libevoral_visibility_h__
23 #if defined(COMPILER_MSVC)
24 #define LIBEVORAL_DLL_IMPORT __declspec(dllimport)
25 #define LIBEVORAL_DLL_EXPORT __declspec(dllexport)
26 #define LIBEVORAL_DLL_LOCAL
27 #define LIBEVORAL_TEMPLATE_DLL_IMPORT __declspec(dllimport)
28 #define LIBEVORAL_TEMPLATE_DLL_EXPORT __declspec(dllexport)
30 #define LIBEVORAL_DLL_IMPORT __attribute__ ((visibility ("default")))
31 #define LIBEVORAL_DLL_EXPORT __attribute__ ((visibility ("default")))
32 #define LIBEVORAL_DLL_LOCAL __attribute__ ((visibility ("hidden")))
33 #define LIBEVORAL_TEMPLATE_DLL_IMPORT __attribute__ ((visibility ("default")))
34 #define LIBEVORAL_TEMPLATE_DLL_EXPORT __attribute__ ((visibility ("default")))
37 #ifdef LIBEVORAL_STATIC // libevoral is not a DLL
39 #define LIBEVORAL_LOCAL
41 #ifdef LIBEVORAL_DLL_EXPORTS // defined if we are building the libevoral DLL (instead of using it)
42 #define LIBEVORAL_API LIBEVORAL_DLL_EXPORT
43 #define LIBEVORAL_TEMPLATE_API LIBEVORAL_TEMPLATE_DLL_EXPORT
45 #define LIBEVORAL_API LIBEVORAL_DLL_IMPORT
46 #define LIBEVORAL_TEMPLATE_API LIBEVORAL_TEMPLATE_DLL_IMPORT
48 #define LIBEVORAL_LOCAL LIBEVORAL_DLL_LOCAL