From c887e85912ce46732a008f507880a10a1ddfd9dc Mon Sep 17 00:00:00 2001 From: David Faure Date: Tue, 12 Sep 2000 22:10:37 +0000 Subject: [PATCH] The dummy.cpp hack makes no sense when it starts to contain stuff. Better make it a real source file. Fixes compilation for people who didn't figure out they needed to remove dummy.cpp in the builddir ;-) svn path=/trunk/kdebase/kwin/; revision=63688 --- Makefile.am | 5 +---- kwin_main.cpp | 7 +++++++ 2 files changed, 8 insertions(+), 4 deletions(-) create mode 100644 kwin_main.cpp diff --git a/Makefile.am b/Makefile.am index b3c69850a3..6fa1521c9d 100644 --- a/Makefile.am +++ b/Makefile.am @@ -13,7 +13,7 @@ kwin_la_LDFLAGS = $(all_libraries) -module -avoid-version include_HEADERS = KWinInterface.h -kwin_SOURCES = dummy.cpp +kwin_SOURCES = kwin_main.cpp kwin_LDADD = kwin.la kwin_LDFLAGS = $(all_libraries) $(KDE_RPATH) @@ -31,6 +31,3 @@ data_DATA= eventsrc sounddir= $(kde_sounddir) sound_DATA = pop.wav -dummy.cpp: - echo 'extern "C" { int kdemain(int, char *[]);} int main(int c, char *v[]) { return kdemain(c,v); }' > dummy.cpp - diff --git a/kwin_main.cpp b/kwin_main.cpp new file mode 100644 index 0000000000..15746ebb8d --- /dev/null +++ b/kwin_main.cpp @@ -0,0 +1,7 @@ +extern "C" { int kdemain(int, char *[]); } + +int main(int c, char *v[]) +{ + return kdemain(c,v); +} +