Changeset View
Changeset View
Standalone View
Standalone View
kolab_export.h
Show All 17 Lines | |||||
* Boston, MA 02110-1301, USA. | * Boston, MA 02110-1301, USA. | ||||
*/ | */ | ||||
#ifndef KOLAB_EXPORT_H | #ifndef KOLAB_EXPORT_H | ||||
#define KOLAB_EXPORT_H | #define KOLAB_EXPORT_H | ||||
#include <qglobal.h> | #include <qglobal.h> | ||||
//Workaround for qt not defining Q_DECL_IMPORT as it should | /* Workaround for Qt4 not defining Q_DECL_IMPORT as it should. */ | ||||
#if defined(Q_OS_LINUX) | #if !defined(Q_OS_WIN) | ||||
# undef Q_DECL_IMPORT | # undef Q_DECL_IMPORT | ||||
# define Q_DECL_IMPORT __attribute__((visibility("default"))) | # define Q_DECL_IMPORT __attribute__((visibility("default"))) | ||||
#endif | #endif | ||||
#ifndef KOLAB_EXPORT | #ifndef KOLAB_EXPORT | ||||
# if defined(KOLAB_STATIC_LIBS) | # if defined(KOLAB_STATIC_LIBS) | ||||
/* No export/import for static libraries */ | /* No export/import for static libraries */ | ||||
# define KOLAB_EXPORT | # define KOLAB_EXPORT | ||||
# elif defined(MAKE_KOLAB_LIB) | # elif defined(kolab_EXPORTS) | ||||
/* We are building this library */ | /* We are building this library. kolab_EXPORTS is defined by CMake. */ | ||||
# define KOLAB_EXPORT Q_DECL_EXPORT | # define KOLAB_EXPORT Q_DECL_EXPORT | ||||
# else | # else | ||||
/* We are using this library */ | /* We are using this library */ | ||||
# define KOLAB_EXPORT Q_DECL_IMPORT | # define KOLAB_EXPORT Q_DECL_IMPORT | ||||
# endif | # endif | ||||
#endif | #endif | ||||
# ifndef KOLAB_EXPORT_DEPRECATED | # ifndef KOLAB_EXPORT_DEPRECATED | ||||
Show All 11 Lines |