clipper_global.h 598 Bytes
Newer Older
Valentin Platzgummer's avatar
Valentin Platzgummer committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
#ifndef CLIPPER_GLOBAL_H
#define CLIPPER_GLOBAL_H

#if defined(_MSC_VER) || defined(WIN64) || defined(_WIN64) || defined(__WIN64__) || defined(WIN32) || defined(_WIN32) || defined(__WIN32__) || defined(__NT__)
#  define Q_DECL_EXPORT __declspec(dllexport)
#  define Q_DECL_IMPORT __declspec(dllimport)
#else
#  define Q_DECL_EXPORT     __attribute__((visibility("default")))
#  define Q_DECL_IMPORT     __attribute__((visibility("default")))
#endif

#if defined(CLIPPER_LIBRARY)
#  define CLIPPER_EXPORT Q_DECL_EXPORT
#else
#  define CLIPPER_EXPORT Q_DECL_IMPORT
#endif

#endif // CLIPPER_GLOBAL_H