Fix for OSX build across both Tiger and 10.3.x

This commit is contained in:
Robert Osfield
2005-05-05 21:21:14 +00:00
parent 9534cd8638
commit fd9f5c0f43

View File

@@ -52,7 +52,7 @@ DynamicLibrary::~DynamicLibrary()
#if defined(WIN32) && !defined(__CYGWIN__)
FreeLibrary((HMODULE)_handle);
#elif defined(__APPLE__)
NSUnLinkModule(static_cast<__NSModule*>(_handle), FALSE);
NSUnLinkModule(static_cast<NSModule>(_handle), FALSE);
#elif defined(__hpux__)
// fortunately, shl_t is a pointer
shl_unload (static_cast<shl_t>(_handle));