From 60f29aeb37169e0e22c159a1f8615f91c7ffbc86 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 8 Jun 2009 10:54:16 +0000 Subject: [PATCH] Fixed warning --- src/osgDB/DynamicLibrary.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osgDB/DynamicLibrary.cpp b/src/osgDB/DynamicLibrary.cpp index 7f00259f6..f69e7b87d 100644 --- a/src/osgDB/DynamicLibrary.cpp +++ b/src/osgDB/DynamicLibrary.cpp @@ -38,6 +38,7 @@ #endif #include +#include #include #include @@ -138,8 +139,7 @@ DynamicLibrary::PROC_ADDRESS DynamicLibrary::getProcAddress(const std::string& p { if (_handle==NULL) return NULL; #if defined(WIN32) && !defined(__CYGWIN__) - return (DynamicLibrary::PROC_ADDRESS)GetProcAddress( (HMODULE)_handle, - procName.c_str() ); /* FIX WARNING */ + return osg::convertPointerType( GetProcAddress( (HMODULE)_handle, procName.c_str() ) ); #elif defined(__APPLE__) && defined(APPLE_PRE_10_3) std::string temp("_"); NSSymbol symbol;