1 #ifndef __liblua_visibility_h__
2 #define __liblua_visibility_h__
4 #if defined(COMPILER_MSVC)
5 # define LIBLUA_DLL_IMPORT __declspec(dllimport)
6 # define LIBLUA_DLL_EXPORT __declspec(dllexport)
7 # define LIBLUA_DLL_LOCAL
9 # define LIBLUA_DLL_IMPORT __attribute__ ((visibility ("default")))
10 # define LIBLUA_DLL_EXPORT __attribute__ ((visibility ("default")))
11 # define LIBLUA_DLL_LOCAL __attribute__ ((visibility ("hidden")))
16 // MSVC: build liblua as DLL
17 # define LIBLUA_BUILD_AS_DLL
19 // others currently use a static lib (incl. with libardour)
20 # define LIBLUA_STATIC
27 // define when building the DLL (instead of using it)
28 # ifdef LIBLUA_DLL_EXPORTS
29 # define LIBLUA_API LIBLUA_DLL_EXPORT
31 # define LIBLUA_API LIBLUA_DLL_IMPORT
35 #endif /* __liblua_visibility_h__ */