summaryrefslogtreecommitdiffhomepage
path: root/opentrack-compat/compat-import.hpp
blob: 161ccc5d1dedd74a4b63ef5dbd8d61c3ef8487b6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#pragma once

#ifndef OPENTRACK_COMPAT_EXPORT
#   ifdef _WIN32
#       define OPENTRACK_COMPAT_LINKAGE __declspec(dllimport)
#   else
#       define OPENTRACK_COMPAT_LINKAGE
#   endif

#   ifndef _MSC_VER
#       define OPENTRACK_COMPAT_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_COMPAT_LINKAGE
#   else
#       define OPENTRACK_COMPAT_EXPORT OPENTRACK_COMPAT_LINKAGE
#   endif
#endif