summaryrefslogtreecommitdiffhomepage
path: root/compat/linkage-macros.hpp
blob: 460e7ee583707e1bb2aa27fd7c2dd204f36831bb (plain)
1
2
3
4
5
6
7
8
9
#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