Carotid 0.1.1
Loading...
Searching...
No Matches
Platform.h
Go to the documentation of this file.
1#ifndef CAROTID_PLATFORM_H
2#define CAROTID_PLATFORM_H
3
4#ifndef CAROTID_NO_EXPORTS
5#define CAROTID_EXPORTS
6#endif
7#if defined _WIN32 || defined __CYGWIN__
8#ifdef CAROTID_EXPORTS
9#ifdef _CAROTID_LIB_NO_EXPORTS_
10#define CAROTID_LINKAGE __declspec(dllimport)
11#else
12#define CAROTID_LINKAGE __declspec(dllexport)
13#endif
14#endif
15#elif defined(CAROTID_EXPORTS) && defined(__GNUC__)
16#define CAROTID_LINKAGE __attribute__((visibility("default")))
17#endif
18
19#ifndef CAROTID_LINKAGE
20#define CAROTID_LINKAGE
21#endif
22
23#ifdef __GNUC__
24#define CAROTID_DEPRECATED __attribute__((deprecated))
25#else
26#ifdef _MSC_VER
27#define CAROTID_DEPRECATED __declspec(deprecated)
28#else
29#define CAROTID_DEPRECATED
30#endif
31#endif
32
33#endif