Dura2D  v0.1.0
An educational 2D game physics library
Loading...
Searching...
No Matches
d2api.h
Go to the documentation of this file.
1#ifndef DURA2D_D2API_H
2#define DURA2D_D2API_H
3
4#ifdef D2_SHARED
5#if defined _WIN32 || defined __CYGWIN__
6 #ifdef dura2d_EXPORTS
7 #ifdef __GNUC__
8 #define D2_API __attribute__ ((dllexport))
9 #else
10 #define D2_API __declspec(dllexport)
11 #endif
12 #else
13 #ifdef __GNUC__
14 #define D2_API __attribute__ ((dllimport))
15 #else
16 #define D2_API __declspec(dllimport)
17 #endif
18 #endif
19 #else
20 #if __GNUC__ >= 4
21 #define D2_API __attribute__ ((visibility ("default")))
22 #else
23 #define D2_API
24 #endif
25 #endif
26#else
27#define D2_API
28#endif
29
30#endif //DURA2D_D2API_H