15 #ifndef VISIONTRANSFER_COMMON_H 16 #define VISIONTRANSFER_COMMON_H 20 # define VT_EXPORT __declspec(dllexport) 26 #ifdef VISIONTRANSFER_NO_DEPRECATION_WARNINGS 28 # define DEPRECATED(msg) 30 # if __cplusplus >= 201402L 31 # define DEPRECATED(msg) [[deprecated(msg)]] 32 # elif defined(__GNUC__) || defined(__clang__) 33 # define DEPRECATED(msg) __attribute__ ((deprecated(msg))) 34 # elif defined(_MSC_VER) 35 # define DEPRECATED(msg) __declspec(deprecated(msg)) 37 # define DEPRECATED(msg) 42 #ifndef VISIONTRANSFER_NO_OLD_ABI_WARNING 43 # // Warn for old glibc++ ABI, unless it's our own internal compatibility build 44 # if defined(_GLIBCXX_USE_CXX11_ABI) && _GLIBCXX_USE_CXX11_ABI == 0 45 # warning "CAUTION: You are using _GLIBCXX_USE_CXX11_ABI=0. Make sure to link a libvisiontransfer built with the same setting."