InertiaSDK

Loading...
Searching...
No Matches
InertiaExport.h
1
2#ifndef INERTIA_API_H
3#define INERTIA_API_H
4
5#ifdef SHARED_EXPORTS_BUILT_AS_STATIC
6# define INERTIA_API
7# define INERTIA_NO_EXPORT
8#else
9# ifndef INERTIA_API
10# ifdef inertia_EXPORTS
11 /* We are building this library */
12#ifdef _WIN32
13# define INERTIA_API __declspec(dllexport)
14#else
15# define INERTIA_API __attribute__((visibility("default")))
16#endif
17# else
18 /* We are using this library */
19#ifdef _WIN32
20# define INERTIA_API __declspec(dllimport)
21#else
22# define INERTIA_API __attribute__((visibility("default")))
23#endif
24# endif
25# endif
26
27# ifndef INERTIA_NO_EXPORT
28#ifdef _WIN32
29# define INERTIA_NO_EXPORT
30#else
31# define INERTIA_NO_EXPORT __attribute__((visibility("hidden")))
32#endif
33# endif
34#endif
35
36#ifndef INERTIA_DEPRECATED
37#ifdef _MSC_VER
38# define INERTIA_DEPRECATED __declspec(deprecated)
39#else
40# define INERTIA_DEPRECATED __attribute__ ((__deprecated__))
41#endif
42#endif
43
44#ifndef INERTIA_DEPRECATED_EXPORT
45# define INERTIA_DEPRECATED_EXPORT INERTIA_API INERTIA_DEPRECATED
46#endif
47
48#ifndef INERTIA_DEPRECATED_NO_EXPORT
49# define INERTIA_DEPRECATED_NO_EXPORT INERTIA_NO_EXPORT INERTIA_DEPRECATED
50#endif
51
52#endif /* INERTIA_API_H */