summaryrefslogtreecommitdiffhomepage
path: root/options/export.hpp
blob: c430540f6df0a76bcb3bd4639914c1c6d7006846 (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_options
#   ifdef _WIN32
#       define OPENTRACK_OPTIONS_LINKAGE __declspec(dllexport)
#   else
#       define OPENTRACK_OPTIONS_LINKAGE
#   endif

#   ifndef _MSC_VER
#       define OPENTRACK_OPTIONS_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_OPTIONS_LINKAGE
#   else
#       define OPENTRACK_OPTIONS_EXPORT OPENTRACK_OPTIONS_LINKAGE
#   endif
#else
    #ifdef _WIN32
    #    define OPENTRACK_OPTIONS_LINKAGE __declspec(dllimport)
    #else
    #    define OPENTRACK_OPTIONS_LINKAGE
    #endif

    #ifndef _MSC_VER
    #    define OPENTRACK_OPTIONS_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_OPTIONS_LINKAGE
    #else
    #    define OPENTRACK_OPTIONS_EXPORT OPENTRACK_OPTIONS_LINKAGE
    #endif
#endif