| 1 | #ifndef __TRACYAPI_H__ |
| 2 | #define __TRACYAPI_H__ |
| 3 | |
| 4 | #if defined _WIN32 |
| 5 | # if defined TRACY_EXPORTS |
| 6 | # define TRACY_API __declspec(dllexport) |
| 7 | # elif defined TRACY_IMPORTS |
| 8 | # define TRACY_API __declspec(dllimport) |
| 9 | # else |
| 10 | # define TRACY_API |
| 11 | # endif |
| 12 | #else |
| 13 | # define TRACY_API __attribute__((visibility("default"))) |
| 14 | #endif |
| 15 | |
| 16 | #endif // __TRACYAPI_H__ |