ThreadSchedule 3.0.0
Modern C++ thread management library
Loading...
Searching...
No Matches
export.hpp
Go to the documentation of this file.
1#pragma once
2
13#if defined(_WIN32) || defined(_WIN64)
14# if defined(THREADSCHEDULE_EXPORTS)
15# define THREADSCHEDULE_API __declspec(dllexport)
16# else
17# define THREADSCHEDULE_API __declspec(dllimport)
18# endif
19#elif defined(__GNUC__) || defined(__clang__)
20# define THREADSCHEDULE_API __attribute__((visibility("default")))
21#else
22# define THREADSCHEDULE_API
23#endif
24
29#if defined(__has_cpp_attribute)
30# if __has_cpp_attribute(deprecated)
31# define THREADSCHEDULE_DEPRECATED(msg) [[deprecated(msg)]]
32# else
33# define THREADSCHEDULE_DEPRECATED(msg)
34# endif
35#else
36# define THREADSCHEDULE_DEPRECATED(msg)
37#endif