Commit dc3253db authored by uentity's avatar uentity

Add macros for explicit symbol visibility

parent 5d6cda55
...@@ -259,3 +259,22 @@ struct IUnknown; ...@@ -259,3 +259,22 @@ struct IUnknown;
__FILE__, __LINE__, error); \ __FILE__, __LINE__, error); \
::abort(); \ ::abort(); \
} while (false) } while (false)
// Explicit symbol visibility macros.
#ifdef CAF_MSVC
# define CAF_API_EXPORT __declspec(dllexport)
# define CAF_API_IMPORT __declspec(dllimport)
#elif defined(CAF_CLANG) || defined(CAF_GCC)
# define CAF_API_EXPORT __attribute__ ((visibility("default")))
# define CAF_API_IMPORT
#else
# define CAF_API_EXPORT
# define CAF_API_IMPORT
#endif
#ifdef libcaf_core_shared_EXPORTS
# define CAF_API CAF_API_EXPORT
#else
# define CAF_API CAF_API_IMPORT
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment