Added optional compilation of setenv code

This commit is contained in:
Robert Osfield 2006-07-14 18:20:14 +00:00
parent 9f81ef8561
commit 8762f9a31e

View File

@ -450,17 +450,13 @@ int main( int argc, char **argv )
return 1;
}
#ifndef _WIN32
std::string options;
while(arguments.read("--optimizer",options))
{
osg::notify(osg::NOTICE)<<"Setting "<<options<<std::endl;
setenv("OSG_OPTIMIZER",options.c_str(),1);
char* result = getenv("OSG_OPTIMIZER");
if (result) osg::notify(osg::NOTICE)<<"Got value "<<result<<std::endl;
else osg::notify(osg::NOTICE)<<"No value"<<std::endl;
}
#endif
FileNameList fileNames;
OrientationConverter oc;