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

#if defined _MSC_VER || defined _WIN32
#   define OTR_GENERIC_EXPORT __declspec(dllexport)
#   define OTR_GENERIC_IMPORT __declspec(dllimport)
#else
#   define OTR_GENERIC_EXPORT __attribute__ ((visibility ("default")))
#   define OTR_GENERIC_IMPORT
#endif

#if defined _MSC_VER
#   define OTR_GENERIC_TEMPLATE
#else
#   define OTR_GENERIC_TEMPLATE __attribute__ ((visibility ("default")))
#endif