mirror of
https://github.com/wolfpld/tracy.git
synced 2026-06-08 08:33:48 +00:00
clang visibility for TRACY_API (#1310)
This commit is contained in:
@@ -3,11 +3,23 @@
|
||||
|
||||
#if defined _WIN32
|
||||
# if defined TRACY_EXPORTS
|
||||
# define TRACY_API __declspec(dllexport)
|
||||
# if defined(__clang__)
|
||||
# define TRACY_API __declspec(dllexport) __attribute__((visibility("default")))
|
||||
# else
|
||||
# define TRACY_API __declspec(dllexport)
|
||||
# endif
|
||||
# elif defined TRACY_IMPORTS
|
||||
# define TRACY_API __declspec(dllimport)
|
||||
# if defined(__clang__)
|
||||
# define TRACY_API __declspec(dllimport) __attribute__((visibility("default")))
|
||||
# else
|
||||
# define TRACY_API __declspec(dllimport)
|
||||
# endif
|
||||
# else
|
||||
# define TRACY_API
|
||||
# if defined(__clang__)
|
||||
# define TRACY_API __attribute__((visibility("default")))
|
||||
# else
|
||||
# define TRACY_API
|
||||
# endif
|
||||
# endif
|
||||
#else
|
||||
# define TRACY_API __attribute__((visibility("default")))
|
||||
|
||||
Reference in New Issue
Block a user