summaryrefslogtreecommitdiffhomepage
path: root/migration/export.hpp
blob: 800ddf3555bf034c0df5126fb7e025639f076feb (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
28
#pragma once

#ifdef BUILD_migration
#   ifdef _WIN32
#       define OPENTRACK_MIGRATION_LINKAGE __declspec(dllexport)
#   else
#       define OPENTRACK_MIGRATION_LINKAGE
#   endif

#   ifndef _MSC_VER
#       define OPENTRACK_MIGRATION_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_MIGRATION_LINKAGE
#   else
#       define OPENTRACK_MIGRATION_EXPORT OPENTRACK_MIGRATION_LINKAGE
#   endif

#else
    #ifdef _WIN32
    #    define OPENTRACK_MIGRATION_LINKAGE __declspec(dllimport)
    #else
    #    define OPENTRACK_MIGRATION_LINKAGE
    #endif

    #ifndef _MSC_VER
    #    define OPENTRACK_MIGRATION_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_MIGRATION_LINKAGE
    #else
    #    define OPENTRACK_MIGRATION_EXPORT OPENTRACK_MIGRATION_LINKAGE
    #endif
#endif