From Brede Johansen, patch to make osgconv.cpp compile on VC 2005.

This commit is contained in:
Robert Osfield 2006-07-14 18:40:25 +00:00
parent 2358ab2b2b
commit 72fc19d01f

View File

@ -25,6 +25,16 @@
#include "OrientationConverter.h"
#if (_MSC_VER >= 1400) // Visual Studio 2005
#include <sstream>
int setenv(const char *name, const char *value, int /*rewrite*/)
{
std::stringstream sstr;
sstr<<name<<'='<<value;
return _putenv(sstr.str().c_str());
}
#endif
typedef std::vector<std::string> FileNameList;
@ -450,13 +460,12 @@ int main( int argc, char **argv )
return 1;
}
#ifndef _WIN32
std::string options;
while(arguments.read("--optimizer",options))
{
setenv("OSG_OPTIMIZER",options.c_str(),1);
}
#endif
FileNameList fileNames;
OrientationConverter oc;