summaryrefslogtreecommitdiffhomepage
path: root/compat/export.hpp
blob: ba10f1312aec3aecac5f92f1ca197eb6d5648289 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once

#ifdef BUILD_compat
#   ifdef _WIN32
#       define OPENTRACK_COMPAT_LINKAGE __declspec(dllexport)
#   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
#else
    #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