usage of kdemain() in dcopstart.cpp, dcop.cpp and dcopfind.cpp ?

Alexander Neundorf neundorf at
Sat Feb 4 20:24:39 GMT 2006


the following code exists in all three files 
kdelibs/dcop/dcopstart.cpp, dcop.cpp and dcopfind.cpp:

#ifdef Q_OS_WIN
# define main kdemain

int main( int argc, char** argv )

This means under windows instead of "main" "kdemain" is used. But nowadays 
when the dcop stuff is built under windows using scons or cmake, a 
-Dkdemain=main is required, otherwise there are undefined references to main. 
This doesn't make much sense. For all three files there was a first commit 
which changed main() to kdemain(), followed by a second commit the same day 
which reverted this change but kept it as kdemain() for windows.

Are there any objections against just removing the kdemain() ?

Work: alexander.neundorf AT -
Home: neundorf AT                -
      alex AT               -

More information about the kde-core-devel mailing list