From ba8c00921982bca6cdf789c7632dbfd776265214 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Thu, 3 Jan 2002 19:28:13 +0000 Subject: [PATCH] Small source code changes for Cygwin port of OSG. --- src/osg/GLExtensions.cpp | 2 +- src/osgDB/Registry.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/osg/GLExtensions.cpp b/src/osg/GLExtensions.cpp index 766482194..3f3aa84f9 100644 --- a/src/osg/GLExtensions.cpp +++ b/src/osg/GLExtensions.cpp @@ -60,7 +60,7 @@ const bool osg::isGLExtensionSupported(const char *extension) void* osg::getGLExtensionFuncPtr(const char *funcName) { -#if defined(_WIN32) +#if defined(_WIN32) || defined(__CYGWIN__) return wglGetProcAddress(funcName); #elif defined(macintosh) return NULL; diff --git a/src/osgDB/Registry.cpp b/src/osgDB/Registry.cpp index bfe335fbf..bdd430a94 100644 --- a/src/osgDB/Registry.cpp +++ b/src/osgDB/Registry.cpp @@ -221,7 +221,7 @@ std::string Registry::createLibraryNameForExt(const std::string& ext) ExtensionAliasMap::iterator itr=_extAliasMap.find(ext); if (itr!=_extAliasMap.end()) return createLibraryNameForExt(itr->second); -#ifdef WIN32 +#if defined(WIN32) # ifdef _DEBUG return "osgdb_"+ext+"d.dll"; # else