Windows build error and warning fixes

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14626 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield
2014-12-19 11:00:31 +00:00
parent c6013c721e
commit 4945e03bcb
2 changed files with 2 additions and 1 deletions

View File

@@ -24,6 +24,7 @@ using namespace osg;
using namespace std;
#if defined(WIN32) && !defined(__CYGWIN__)
#include<Windows.h>
extern "C" { _declspec(dllexport) DWORD NvOptimusEnablement=0x00000001; }
#else
extern "C" { int NvOptimusEnablement=0x00000001; }