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

#ifdef BUILD_compat
#   ifdef _WIN32
#       define OPENTRACK_LINKAGE __declspec(dllexport)
#   else
#       define OPENTRACK_LINKAGE
#   endif

#   ifndef _MSC_VER
#       define OPENTRACK_COMPAT_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_LINKAGE
#   else
#       define OPENTRACK_COMPAT_EXPORT OPENTRACK_LINKAGE
#   endif
#else
#   include "import.hpp"
#endif