diff options
Diffstat (limited to 'src/tqca.h')
-rw-r--r-- | src/tqca.h | 18 |
1 files changed, 8 insertions, 10 deletions
@@ -29,16 +29,14 @@ #include <tqptrlist.h> #include <tqobject.h> -#ifdef Q_OS_WIN32 -# ifndef TQCA_STATIC -# ifdef TQCA_MAKEDLL -# define TQCA_EXPORT __declspec(dllexport) -# else -# define TQCA_EXPORT __declspec(dllimport) -# endif -# endif -#endif -#ifndef TQCA_EXPORT +#if defined(__KDE_HAVE_GCC_VISIBILITY) || defined(G_HAVE_GCC_VISIBILITY) +#define TQCA_NO_EXPORT __attribute__ ((visibility("hidden"))) +#define TQCA_EXPORT __attribute__ ((visibility("default"))) +#elif defined(_WIN32) +#define TQCA_NO_EXPORT +#define TQCA_EXPORT __declspec(dllexport) +#else +#define TQCA_NO_EXPORT #define TQCA_EXPORT #endif |