From e8628e6e3e98f2276fb69bbc545866cc9a022228 Mon Sep 17 00:00:00 2001 From: zautrix Date: Thu, 08 Jul 2004 00:16:46 +0000 Subject: Compile fixes for windows --- (limited to 'microkde/kdecore') diff --git a/microkde/kdecore/klibloader.cpp b/microkde/kdecore/klibloader.cpp index 9eee912..1394154 100644 --- a/microkde/kdecore/klibloader.cpp +++ b/microkde/kdecore/klibloader.cpp @@ -378,8 +378,13 @@ QString KLibLoader::findLibrary( const char * name/*US , const KInstance * insta } */ //US in the microedition we work only with shared libraries. + if (libname.find('.', pos) < 0) { +#ifdef _WIN32_ + libname += ".dll"; +#else libname += ".so"; +#endif } // only look up the file if it is not an absolute filename @@ -392,7 +397,9 @@ QString KLibLoader::findLibrary( const char * name/*US , const KInstance * insta //US at this point the libname must exist as real filesname. No expansions will be made later // in findResources. Because of that we prepend the lib prefix here to the name //US I add also the "lib" prefix. I do not how could this could have worked before without it? +#ifndef _WIN32_ libname.insert(pos, "lib"); +#endif //US libfile = instance->dirs()->findResource( "module", libname ); -- cgit v0.9.0.2