From bbc80561c4a43b82c87c641483f8dc2aa507afac Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 2 Feb 2012 14:57:31 -0600 Subject: [PATCH] Fix symbol visibility on gcc --- qt/qextscintillaglobal.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/qt/qextscintillaglobal.h b/qt/qextscintillaglobal.h index 38335f0..aebd822 100644 --- a/qt/qextscintillaglobal.h +++ b/qt/qextscintillaglobal.h @@ -44,6 +44,12 @@ #define TQEXTSCINTILLA_EXPORT __declspec(dllexport) #endif +#else + +#if __GNUC__ >= 4 +#define TQEXTSCINTILLA_EXPORT __attribute__ ((visibility("default"))) +#endif + #endif #if !defined(TQEXTSCINTILLA_EXPORT)