From Alexey Pavlov, "Export fix for Windows platform"

git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14672 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
Robert Osfield 2015-01-22 16:41:34 +00:00
parent e330e9309c
commit 51b19d2d8b

View File

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