Add option WITH_GCC_VISIBILITY.

Fix building with hidden visibility.
Add missing definitions to config.h.cmake.

Signed-off-by: Slávek Banko <slavek.banko@axis.cz>
pull/10/head
Slávek Banko 3 years ago
parent c3d0b8b21f
commit 762bfec2c8
No known key found for this signature in database
GPG Key ID: 608F5293A04BE668

@ -42,6 +42,7 @@ tde_setup_paths( )
##### optional stuff ############################
option( WITH_ALL_OPTIONS "Enable all sane optional stuff" OFF )
option( WITH_GCC_VISIBILITY "Enable fvisibility and fvisibility-inlines-hidden" ${WITH_ALL_OPTIONS} )
option( WITH_ARTS "Enable aRts support" ${WITH_ALL_OPTIONS} )
option( WITH_SDL "Enable SDL support" ${WITH_ALL_OPTIONS} )
option( WITH_BERKELEY_DB "Enable Berkeley DB support" ${WITH_ALL_OPTIONS} )

@ -1,3 +1,11 @@
#define VERSION "@VERSION@"
// Defined if you have fvisibility and fvisibility-inlines-hidden support.
#cmakedefine __KDE_HAVE_GCC_VISIBILITY 1
/* Define WORDS_BIGENDIAN to 1 if your processor stores words with the most
significant byte first (like Motorola and SPARC, unlike Intel). */
#cmakedefine WORDS_BIGENDIAN @WORDS_BIGENDIAN@
// kicker-applets
#cmakedefine HAVE_FCNTL_H 1

@ -81,7 +81,7 @@ class PluginView : public KXMLGUIClient
extern "C"
{
void* init_katefiletemplates()
KDE_EXPORT void* init_katefiletemplates()
{
TDEGlobal::locale()->insertCatalogue("katefiletemplates");
return new KatePluginFactory;

@ -38,7 +38,7 @@ class PluginView : public KXMLGUIClient
extern "C"
{
void* init_katesortplugin()
KDE_EXPORT void* init_katesortplugin()
{
TDEGlobal::locale()->insertCatalogue("katesort");
return new KatePluginFactory;

@ -55,7 +55,7 @@ class PluginView : public KXMLGUIClient
extern "C"
{
void* init_libkatetabbarextensionplugin()
KDE_EXPORT void* init_libkatetabbarextensionplugin()
{
TDEGlobal::locale()->insertCatalogue("katetabbarextension");
return new KatePluginFactory;

@ -36,8 +36,10 @@ void Metabar::handlePreview(const KFileItemList &items)
}
extern "C" {
bool add_konqsidebar_metabar(TQString* fn, TQString* param, TQMap<TQString,TQString> *map) {
extern "C"
{
KDE_EXPORT bool add_konqsidebar_metabar(TQString* fn, TQString* param, TQMap<TQString,TQString> *map)
{
Q_UNUSED(param);
map->insert("Type", "Link");
@ -52,7 +54,7 @@ extern "C" {
extern "C"
{
void* create_konqsidebar_metabar(TDEInstance *instance,TQObject *par,TQWidget *widp,TQString &desktopname,const char *name)
KDE_EXPORT void* create_konqsidebar_metabar(TDEInstance *instance,TQObject *par,TQWidget *widp,TQString &desktopname,const char *name)
{
return new Metabar(instance,par,widp,desktopname,name);
}

@ -32,7 +32,7 @@
extern "C"
{
ThumbCreator * KDE_EXPORT new_creator()
KDE_EXPORT ThumbCreator* KDE_EXPORT new_creator()
{
return new WebArchiveCreator;
}

@ -39,11 +39,14 @@
#include "kminutespinbox.h"
#include "kpercentspinbox.h"
extern "C" Plugin *create_plugin()
extern "C"
{
KDE_EXPORT Plugin* create_plugin()
{
TDEGlobal::locale()->insertCatalogue("wakeup");
return new Wakeup();
}
}
Wakeup *Wakeup::wakeme = 0;

@ -25,7 +25,7 @@
extern "C"
{
Plugin * create_plugin()
KDE_EXPORT Plugin* create_plugin()
{
TDEGlobal::locale()->insertCatalogue("alsaplayerui");
return new AlsaPlayer;

@ -29,7 +29,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
extern "C"
{
Plugin *create_plugin()
KDE_EXPORT Plugin* create_plugin()
{
return new SDLScope();
}

@ -25,7 +25,7 @@
extern "C"
{
Plugin * create_plugin()
KDE_EXPORT Plugin* create_plugin()
{
TDEGlobal::locale()->insertCatalogue("charlatanui");
return new Charlatan;

@ -24,12 +24,15 @@
#include "dubplaylist.h"
// plugin interface
extern "C" Plugin *create_plugin()
extern "C"
{
KDE_EXPORT Plugin* create_plugin()
{
TDEGlobal::locale()->insertCatalogue("dub");
DubPlaylist* dub = new DubPlaylist;
return dub;
}
}
/** Construct playlist object */
DubPlaylist::DubPlaylist()

@ -14,11 +14,14 @@
#include "ffrs.h"
extern "C" Plugin *create_plugin()
extern "C"
{
KDE_EXPORT Plugin* create_plugin()
{
TDEGlobal::locale()->insertCatalogue("ffrs");
return new FFRS();
}
}
View::View(int width, int height, int block, int unblock, TQColor front, TQColor back, int channel)

@ -23,10 +23,13 @@
#include "luckytag.h"
#include "parsedmp3filename.h"
extern "C" Plugin *create_plugin()
extern "C"
{
KDE_EXPORT Plugin* create_plugin()
{
return new LuckyTagger;
}
}
LuckyTagger::LuckyTagger(void) : Tags(-10)
{

@ -14,7 +14,7 @@
extern "C"
{
Plugin *create_plugin()
KDE_EXPORT Plugin* create_plugin()
{
TDEGlobal::locale()->insertCatalogue("lyrics");
return new Lyrics();

@ -8,7 +8,7 @@
extern "C"
{
Plugin *create_plugin()
KDE_EXPORT Plugin* create_plugin()
{
TDEGlobal::locale()->insertCatalogue("nexscope");
return new NexPlugin();

@ -21,7 +21,7 @@ RMS's novel that I'm supposed to put at the top of every story. He's insane.
extern "C"
{
Plugin *create_plugin()
KDE_EXPORT Plugin* create_plugin()
{
return new Madness();
}

@ -17,11 +17,13 @@
#include <tqtimer.h>
extern "C" Plugin *create_plugin()
extern "C"
{
KDE_EXPORT Plugin* create_plugin()
{
return new Oblique();
}
}
Oblique::Oblique()

@ -25,7 +25,7 @@
extern "C"
{
Plugin *create_plugin()
KDE_EXPORT Plugin* create_plugin()
{
TDEGlobal::locale()->insertCatalogue("pitchablespeed");
return new PitchableSpeed();

@ -15,7 +15,7 @@
extern "C"
{
Plugin *create_plugin()
KDE_EXPORT Plugin* create_plugin()
{
TDEGlobal::locale()->insertCatalogue("synaescope");
return new SynaeScope();

@ -19,11 +19,14 @@
#include "syna.h"
#include "synaescope.h"
extern "C" Plugin *create_plugin()
extern "C"
{
KDE_EXPORT Plugin* create_plugin()
{
TDEGlobal::locale()->insertCatalogue("tippecanoe");
return new SynaeScope();
}
}
SynaeScope::SynaeScope()
: TQWidget(0, 0, WType_TopLevel | WStyle_DialogBorder | WRepaintNoErase | WMouseNoMask)

@ -39,24 +39,35 @@ static TQString getSavePath(void)
return dirs.saveLocation("data", "noatun/") + "tylerstates";
}
extern "C" void save_effect(t_effect *effect)
extern "C"
{
KDE_EXPORT void save_effect(t_effect *effect)
{
TQFile file(getSavePath());
if(!file.open(IO_WriteOnly))
{
return;
}
for(unsigned i = 0; i < sizeof(t_effect); i++)
{
file.putch( *((byte *)effect + i) );
}
}
}
t_effect effects[100];
int nb_effects=0;
extern "C" void load_effects()
extern "C"
{
KDE_EXPORT void load_effects()
{
TQFile file(getDataPath());
if(!file.open(IO_ReadOnly))
{
exit(1);
}
unsigned int i;
nb_effects = 0;
@ -64,11 +75,16 @@ extern "C" void load_effects()
{
byte* ptr_effect = (byte *)&effects[nb_effects++];
for(i = 0; i < sizeof(t_effect); i++)
{
ptr_effect[i] = file.getch();
}
}
}
}
extern "C" void load_random_effect(t_effect *effect)
extern "C"
{
KDE_EXPORT void load_random_effect(t_effect *effect)
{
if(nb_effects > 0)
{
@ -76,6 +92,9 @@ extern "C" void load_random_effect(t_effect *effect)
unsigned int i;
for(i = 0; i < sizeof(t_effect) ; i++)
{
*((byte*)effect+i) = *((byte*)(&effects[num_effect])+i);
}
}
}
}

@ -12,11 +12,14 @@
#include <noatun/app.h>
#include <kdebug.h>
extern "C" Plugin *create_plugin()
extern "C"
{
KDE_EXPORT Plugin* create_plugin()
{
TDEGlobal::locale()->insertCatalogue("tyler");
return new Tyler();
}
}
const int Tyler::bufferSize = 512;

@ -42,7 +42,7 @@
extern "C"
{
Plugin *create_plugin()
KDE_EXPORT Plugin* create_plugin()
{
TDEGlobal::locale()->insertCatalogue("wavecapture");
return new WaveCapture();

Loading…
Cancel
Save