diff --git a/src/osg/DisplaySettings.cpp b/src/osg/DisplaySettings.cpp index 4e7ddbc83..f52dacf50 100644 --- a/src/osg/DisplaySettings.cpp +++ b/src/osg/DisplaySettings.cpp @@ -24,6 +24,7 @@ using namespace osg; using namespace std; #if defined(WIN32) && !defined(__CYGWIN__) +#include extern "C" { _declspec(dllexport) DWORD NvOptimusEnablement=0x00000001; } #else extern "C" { int NvOptimusEnablement=0x00000001; } diff --git a/src/osgPlugins/dae/daeReader.h b/src/osgPlugins/dae/daeReader.h index 5c051cf65..634f7d8a3 100644 --- a/src/osgPlugins/dae/daeReader.h +++ b/src/osgPlugins/dae/daeReader.h @@ -253,7 +253,7 @@ public: typedef std::map< int, osg::Array*, std::less > ArrayMap; typedef std::multimap< osgAnimation::Target*, osg::ref_ptr > TargetChannelPartMap; - typedef std::multimap, std::pair, GLuint> > OldToNewIndexMap; + typedef std::multimap, std::pair, GLuint> > OldToNewIndexMap; private: bool processDocument( const std::string& );