Skip to content

Commit

Permalink
Merge pull request openscenegraph#1055 from glebm/namespace-std
Browse files Browse the repository at this point in the history
Fix C++17 MSVC compilation error
  • Loading branch information
robertosfield authored Mar 29, 2021
2 parents 34a1d8b + a2927ad commit 1b557a4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/osg/DisplaySettings.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@
#include <algorithm>
#include <string.h>

using namespace osg;
using namespace std;

#if defined(_WIN32) && !defined(__CYGWIN__)
#include<windows.h>
extern "C" { OSG_EXPORT DWORD NvOptimusEnablement=0x00000001; }
#else
extern "C" { int NvOptimusEnablement=0x00000001; }
#endif

using namespace osg;
using namespace std;

void DisplaySettings::setNvOptimusEnablement(int value)
{
NvOptimusEnablement = value;
Expand Down
1 change: 0 additions & 1 deletion src/osgPlugins/cfg/ConfigParser.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,6 @@
#include "CameraConfig.h"


using namespace std;
using namespace osgProducer;

static void ConfigParser_error( const char * );
Expand Down
1 change: 0 additions & 1 deletion src/osgPlugins/cfg/ConfigParser.y
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
#include <Producer/CameraConfig>


using namespace std;
using namespace Producer;

static void ConfigParser_error( const char * );
Expand Down

0 comments on commit 1b557a4

Please sign in to comment.