Fixes for Cygwin build from Norman Vine.

This commit is contained in:
Robert Osfield
2002-06-25 20:47:42 +00:00
parent 3765631cd7
commit 1ceb0b60a8
3 changed files with 31 additions and 36 deletions

View File

@@ -56,7 +56,7 @@ DynamicLibrary::PROC_ADDRESS DynamicLibrary::getProcAddress(const std::string& p
{
if (_handle==NULL) return NULL;
#if defined(WIN32) && !defined(__CYGWIN__)
return GetProcAddress( (HMODULE)_handle, procName.c_str() );
return (DynamicLibrary::PROC_ADDRESS)GetProcAddress( (HMODULE)_handle, procName.c_str() );
#elif !defined(macintosh)
return dlsym( _handle, procName.c_str() );
#endif