From c1e047d54999a38348898a0644c223f83c31ab20 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Mon, 17 Jul 2006 13:16:44 +0000 Subject: [PATCH] Removed the usage of setenv to avoid portability issues. --- applications/osgconv/osgconv.cpp | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/applications/osgconv/osgconv.cpp b/applications/osgconv/osgconv.cpp index 286bddd18..2d0bd86f3 100644 --- a/applications/osgconv/osgconv.cpp +++ b/applications/osgconv/osgconv.cpp @@ -25,19 +25,8 @@ #include "OrientationConverter.h" -#if (_MSC_VER >= 1400) // Visual Studio 2005 -#include -int setenv(const char *name, const char *value, int /*rewrite*/) -{ - std::stringstream sstr; - sstr< FileNameList; - class GraphicsContext { public: GraphicsContext() @@ -452,21 +441,12 @@ int main( int argc, char **argv ) return 1; } - - if (arguments.argc()<=1) { arguments.getApplicationUsage()->write(std::cout,osg::ApplicationUsage::COMMAND_LINE_OPTION); return 1; } - std::string options; - while(arguments.read("--optimizer",options)) - { - setenv("OSG_OPTIMIZER",options.c_str(),1); - } - - FileNameList fileNames; OrientationConverter oc; bool do_convert = false;