From Pavel Moloshtan, fixes for Mingw32 build.

This commit is contained in:
Robert Osfield
2002-09-12 20:30:41 +00:00
parent 6c6fc36d7e
commit ee93b70033
3 changed files with 7 additions and 6 deletions

View File

@@ -35,7 +35,7 @@ SG_EXPORT extern bool isGLExtensionSupported(const char *extension);
inline void* getGLExtensionFuncPtr(const char *funcName)
{
#if defined(WIN32)
return wglGetProcAddress(funcName);
return (void*)wglGetProcAddress(funcName);
#elif defined(__DARWIN_OSX__)
std::string temp( "_" );
temp += funcName; // Mac OS X prepends an underscore on function names
@@ -79,7 +79,7 @@ SG_EXPORT extern bool isGLUExtensionSupported(const char *extension);
inline void* getGLUExtensionFuncPtr(const char *funcName)
{
#if defined(WIN32)
return wglGetProcAddress(funcName);
return (void*)wglGetProcAddress(funcName);
#elif defined(__DARWIN_OSX__)
std::string temp( "_" );
temp += funcName; // Mac OS X prepends an underscore on function names