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