diff options
Diffstat (limited to 'dinput/export.hpp')
-rw-r--r-- | dinput/export.hpp | 29 |
1 files changed, 6 insertions, 23 deletions
diff --git a/dinput/export.hpp b/dinput/export.hpp index 51ee4531..8c6fa27b 100644 --- a/dinput/export.hpp +++ b/dinput/export.hpp @@ -1,28 +1,11 @@ -#pragma once +// generates export.hpp for each module from compat/linkage.hpp -#ifdef BUILD_dinput -# ifdef _WIN32 -# define OPENTRACK_DINPUT_LINKAGE __declspec(dllexport) -# else -# define OPENTRACK_DINPUT_LINKAGE -# endif +#pragma once -# ifndef _MSC_VER -# define OPENTRACK_DINPUT_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_DINPUT_LINKAGE -# else -# define OPENTRACK_DINPUT_EXPORT OPENTRACK_DINPUT_LINKAGE -# endif +#include "compat/linkage-macros.hpp" +#ifdef BUILD_DINPUT +# define OTR_DINPUT_EXPORT OTR_GENERIC_EXPORT #else -#ifdef _WIN32 -# define OPENTRACK_DINPUT_LINKAGE __declspec(dllimport) -#else -# define OPENTRACK_DINPUT_LINKAGE -#endif - -#ifndef _MSC_VER -# define OPENTRACK_DINPUT_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_DINPUT_LINKAGE -#else -# define OPENTRACK_DINPUT_EXPORT OPENTRACK_DINPUT_LINKAGE -#endif +# define OTR_DINPUT_EXPORT OTR_GENERIC_IMPORT #endif |