Merge pull request #277 from bmiklautz/osx_plugin_load_fix

libfreerdp-utils/core: use "dylib" as plugin extension on OSX
This commit is contained in:
Marc-André Moreau 2011-12-13 17:35:40 -08:00
commit 9fbeebe77a
2 changed files with 11 additions and 0 deletions

View File

@ -39,9 +39,15 @@
#define DLSYM(f, n) dlsym(f, n)
#define DLCLOSE(f) dlclose(f)
#define PATH_SEPARATOR '/'
#ifdef __APPLE__
#define PLUGIN_EXT "dylib"
#else
#define PLUGIN_EXT "so"
#endif
#endif
static uint32 FREERDP_CC extension_register_plugin(rdpExtPlugin* plugin)
{
rdpExtension* ext = (rdpExtension*) plugin->ext;

View File

@ -40,7 +40,12 @@
#define DLSYM(f, n) dlsym(f, n)
#define DLCLOSE(f) dlclose(f)
#define PATH_SEPARATOR '/'
#ifdef __APPLE__
#define PLUGIN_EXT "dylib"
#else
#define PLUGIN_EXT "so"
#endif
#endif