common: prevent buffer overflow
[supercollider.git] / include / QtCollider / QC_Export.h
blobf579a696fd9c69335fe1cd1df07029fd634cce1b
1 #ifndef QC_EXPORT_H
2 #define QC_EXPORT_H
4 #if defined _WIN32 || defined __CYGWIN__
5 #define QT_COLLIDER_IMPORT __declspec(dllimport)
6 #define QT_COLLIDER_EXPORT __declspec(dllexport)
7 #else
8 #if __GNUC__ >= 4
9 #define QT_COLLIDER_IMPORT __attribute__ ((visibility("default")))
10 #define QT_COLLIDER_EXPORT __attribute__ ((visibility("default")))
11 #else
12 #define QT_COLLIDER_IMPORT
13 #define QT_COLLIDER_EXPORT
14 #endif
15 #endif
17 #ifdef QT_COLLIDER_EXPORTING // if QtCollider is being built, instead of used
18 #define QC_PUBLIC QT_COLLIDER_EXPORT
19 #else
20 #define QC_PUBLIC QT_COLLIDER_IMPORT
21 #endif
23 #endif // QC_EXPORT_H