Fix support for GCC hidden visibility.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/2/head
Slávek Banko 5 years ago
parent bd91ae659c
commit 402204029e
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -19,6 +19,10 @@
* *
*/ */
#ifdef HAVE_CONFIG_H
# include "config.h"
#endif
#include "tqca.h" #include "tqca.h"
#include "tqcaprovider.h" #include "tqcaprovider.h"

@ -29,16 +29,14 @@
#include <tqptrlist.h> #include <tqptrlist.h>
#include <tqobject.h> #include <tqobject.h>
#ifdef Q_OS_WIN32 #if defined(__KDE_HAVE_GCC_VISIBILITY) || defined(G_HAVE_GCC_VISIBILITY)
# ifndef TQCA_STATIC #define TQCA_NO_EXPORT __attribute__ ((visibility("hidden")))
# ifdef TQCA_MAKEDLL #define TQCA_EXPORT __attribute__ ((visibility("default")))
#elif defined(_WIN32)
#define TQCA_NO_EXPORT
#define TQCA_EXPORT __declspec(dllexport) #define TQCA_EXPORT __declspec(dllexport)
#else #else
# define TQCA_EXPORT __declspec(dllimport) #define TQCA_NO_EXPORT
# endif
# endif
#endif
#ifndef TQCA_EXPORT
#define TQCA_EXPORT #define TQCA_EXPORT
#endif #endif

Loading…
Cancel
Save