diff --git a/src/osg/DisplaySettings.cpp b/src/osg/DisplaySettings.cpp index c65a808b1..aaf9638bb 100644 --- a/src/osg/DisplaySettings.cpp +++ b/src/osg/DisplaySettings.cpp @@ -22,9 +22,6 @@ #include #include -using namespace osg; -using namespace std; - #if defined(_WIN32) && !defined(__CYGWIN__) #include extern "C" { OSG_EXPORT DWORD NvOptimusEnablement=0x00000001; } @@ -32,6 +29,9 @@ extern "C" { OSG_EXPORT DWORD NvOptimusEnablement=0x00000001; } extern "C" { int NvOptimusEnablement=0x00000001; } #endif +using namespace osg; +using namespace std; + void DisplaySettings::setNvOptimusEnablement(int value) { NvOptimusEnablement = value; diff --git a/src/osgPlugins/cfg/ConfigParser.cpp b/src/osgPlugins/cfg/ConfigParser.cpp index d42171004..8a6807eaf 100644 --- a/src/osgPlugins/cfg/ConfigParser.cpp +++ b/src/osgPlugins/cfg/ConfigParser.cpp @@ -235,7 +235,6 @@ #include "CameraConfig.h" -using namespace std; using namespace osgProducer; static void ConfigParser_error( const char * ); diff --git a/src/osgPlugins/cfg/ConfigParser.y b/src/osgPlugins/cfg/ConfigParser.y index cf9adf507..f6a28f766 100644 --- a/src/osgPlugins/cfg/ConfigParser.y +++ b/src/osgPlugins/cfg/ConfigParser.y @@ -34,7 +34,6 @@ #include -using namespace std; using namespace Producer; static void ConfigParser_error( const char * );