Go to the documentation of this file.
16 #ifndef SOCKETCAN__VISIBILITY_CONTROL_HPP_
17 #define SOCKETCAN__VISIBILITY_CONTROL_HPP_
22 #if defined _WIN32 || defined __CYGWIN__
24 #define SOCKETCAN_EXPORT __attribute__ ((dllexport))
25 #define SOCKETCAN_IMPORT __attribute__ ((dllimport))
27 #define SOCKETCAN_EXPORT __declspec(dllexport)
28 #define SOCKETCAN_IMPORT __declspec(dllimport)
30 #ifdef SOCKETCAN_BUILDING_LIBRARY
31 #define SOCKETCAN_PUBLIC SOCKETCAN_EXPORT
33 #define SOCKETCAN_PUBLIC SOCKETCAN_IMPORT
35 #define SOCKETCAN_PUBLIC_TYPE SOCKETCAN_PUBLIC
36 #define SOCKETCAN_LOCAL
38 #define SOCKETCAN_EXPORT __attribute__ ((visibility("default")))
39 #define SOCKETCAN_IMPORT
41 #define SOCKETCAN_PUBLIC __attribute__ ((visibility("default")))
42 #define SOCKETCAN_LOCAL __attribute__ ((visibility("hidden")))
44 #define SOCKETCAN_PUBLIC
45 #define SOCKETCAN_LOCAL
47 #define SOCKETCAN_PUBLIC_TYPE
50 #endif // SOCKETCAN__VISIBILITY_CONTROL_HPP_