Commit 3972cbce authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

Fix IMediaLibrary factory

Without extern "C", there's not much chance we can use the dll with
a different mangling scheme
parent 3e824e61
......@@ -140,10 +140,9 @@ class IMediaLibrary
virtual void reload() = 0;
};
class MediaLibraryFactory
extern "C"
{
public:
static IMediaLibrary* create();
};
IMediaLibrary* NewMediaLibrary();
}
#endif // IMEDIALIBRARY_H
......@@ -22,7 +22,7 @@
#include "MediaLibrary.h"
IMediaLibrary* MediaLibraryFactory::create()
extern "C" IMediaLibrary* NewMediaLibrary()
{
return new MediaLibrary();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment