WABA: Use kdemain() instead of main() so that closures don't complain about

main being defined twice with different symbol sizes.

svn path=/trunk/kdebase/kwin/; revision=63094
This commit is contained in:
Waldo Bastian 2000-09-07 22:46:24 +00:00
parent 8660053273
commit ebe199a301
3 changed files with 5 additions and 3 deletions

View file

@ -32,5 +32,5 @@ sounddir= $(kde_sounddir)
sound_DATA = pop.wav
dummy.cpp:
echo > dummy.cpp
echo 'extern "C" { int kdemain(int, char *[]);} int main(int c, char *v[]) { return kdemain(c,v); }' > dummy.cpp

View file

@ -2573,7 +2573,7 @@ NoBorderClient::~NoBorderClient()
{
}
QPixmap * kwin_get_menu_pix_hack()
static QPixmap * kwin_get_menu_pix_hack()
{
static QPixmap p;
if ( p.isNull() )

View file

@ -192,7 +192,9 @@ static void sighandler(int) {
static const char *version = "0.5";
static const char *description = I18N_NOOP( "The KDE window manager." );
int main( int argc, char * argv[] )
extern "C" { int kdemain(int, char *[]); }
int kdemain( int argc, char * argv[] )
{
KAboutData aboutData( "kwin", I18N_NOOP("KWin"),
version, description, KAboutData::License_BSD,