diff --git a/src/osg/DisplaySettings.cpp b/src/osg/DisplaySettings.cpp index f52dacf50..8ebae0d3f 100644 --- a/src/osg/DisplaySettings.cpp +++ b/src/osg/DisplaySettings.cpp @@ -25,7 +25,7 @@ using namespace std; #if defined(WIN32) && !defined(__CYGWIN__) #include -extern "C" { _declspec(dllexport) DWORD NvOptimusEnablement=0x00000001; } +extern "C" { OSG_EXPORT DWORD NvOptimusEnablement=0x00000001; } #else extern "C" { int NvOptimusEnablement=0x00000001; } #endif