summaryrefslogtreecommitdiffhomepage
path: root/spline/export.hpp
blob: 4875b4c1b2aa7a361487523f53ffc4c0ce4530d2 (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_spline_widget
#   ifdef _WIN32
#       define OPENTRACK_SPLINE_LINKAGE __declspec(dllexport)
#   else
#       define OPENTRACK_SPLINE_LINKAGE
#   endif

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

    #ifndef _MSC_VER
    #    define OPENTRACK_SPLINE_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_SPLINE_LINKAGE
    #else
    #    define OPENTRACK_SPLINE_EXPORT OPENTRACK_SPLINE_LINKAGE
    #endif
#endif