Fix windows build using static libraries

This commit is contained in:
jfmcarreira committed 2015-09-22 11:15:05 +01:00
1 parent 14763038c5
commit ad40a78f3e
6 files changed
+17 -2

No files matched your search

+6
View File
@@ -25,7 +25,9 @@
#include "config.h"
#include <functional>
#include <cstring>
#ifdef USE_DYNLOAD
#include <dlfcn.h>
#endif
#include "PlaYUVerModuleFactory.h"
#include "ModulesListHeader.h"
@@ -63,6 +65,7 @@ Void PlaYUVerModuleFactory::Register( const char* moduleName, CreateModuleFn pfn
Bool PlaYUVerModuleFactory::RegisterDl( const char* dlName )
{
#ifdef USE_DYNLOAD
void *pHndl = dlopen( dlName, RTLD_NOW );
if( pHndl == NULL )
{
@@ -77,6 +80,9 @@ Bool PlaYUVerModuleFactory::RegisterDl( const char* dlName )
}
Register( dlName, pfnCreate );
return true;
#else
return false;
#endif
}
PlaYUVerModuleIf *PlaYUVerModuleFactory::CreateModule( const char* moduleName )