usage of kdemain() in dcopstart.cpp, dcop.cpp and dcopfind.cpp ?
Alexander Neundorf
neundorf at kde.org
Sat Feb 4 20:24:39 GMT 2006
Hi,
the following code exists in all three files
kdelibs/dcop/dcopstart.cpp, dcop.cpp and dcopfind.cpp:
#ifdef Q_OS_WIN
# define main kdemain
#endif
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.
e.org/trunk/KDE/kdelibs/dcop/client/dcopstart.cpp?rev=460247&view=log
Are there any objections against just removing the kdemain() ?
Bye
Alex
--
Work: alexander.neundorf AT jenoptik.com - http://www.jenoptik-los.de
Home: neundorf AT kde.org - http://www.kde.org
alex AT neundorf.net - http://www.neundorf.net
More information about the kde-core-devel
mailing list