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

#ifndef OPENTRACK_EXPORT
#   ifdef _WIN32
#       define OPENTRACK_LINKAGE __declspec(dllexport)
#   else
#       define OPENTRACK_LINKAGE
#   endif

#   ifndef _MSC_VER
#       define OPENTRACK_EXPORT __attribute__ ((visibility ("default"))) OPENTRACK_LINKAGE
#   else
#       define OPENTRACK_EXPORT OPENTRACK_LINKAGE
#   endif
#endif