FreeRDP
rdtk/include/rdtk/api.h
1 
19 #ifndef RDTK_API_H
20 #define RDTK_API_H
21 
22 #include <winpr/spec.h>
23 
24 #if defined _WIN32 || defined __CYGWIN__
25 #ifdef RDTK_EXPORTS
26 #ifdef __GNUC__
27 #define RDTK_EXPORT __attribute__((dllexport))
28 #else
29 #define RDTK_EXPORT __declspec(dllexport)
30 #endif
31 #else
32 #ifdef __GNUC__
33 #define RDTK_EXPORT __attribute__((dllimport))
34 #else
35 #define RDTK_EXPORT __declspec(dllimport)
36 #endif
37 #endif
38 #else
39 #if __GNUC__ >= 4
40 #define RDTK_EXPORT __attribute__((visibility("default")))
41 #else
42 #define RDTK_EXPORT
43 #endif
44 #endif
45 
46 #endif /* RDTK_API_H */