diff --git a/src/core/kernel/WModuleLoader.cpp b/src/core/kernel/WModuleLoader.cpp index b40ffa6fd37c1150175a0757c005f68e77e0707c..5dbfb06bb44b49fabe1570794a8d95f2c5e070d6 100644 --- a/src/core/kernel/WModuleLoader.cpp +++ b/src/core/kernel/WModuleLoader.cpp @@ -72,10 +72,10 @@ void WModuleLoader::load( WSharedAssociativeContainer< std::set< boost::shared_p // is it a lib? Use a regular expression to check this // NOTE:: the double \\ is needed to escape the escape char - #ifdef __linux__ - static const boost::regex CheckLibMMP( "^.*\\" + WSharedLib::getSystemSuffix() + "\\.[0-9]+\\.[0-9]+\\.[0-9]+$" ); - #else + #ifdef __WIN32__ static const boost::regex CheckLibMMP( "^.*\\" + WSharedLib::getSystemSuffix() +"$" ); + #else + static const boost::regex CheckLibMMP( "^.*\\" + WSharedLib::getSystemSuffix() + "\\.[0-9]+\\.[0-9]+\\.[0-9]+$" ); #endif boost::smatch matches;