From Brede Johansen, patch to make osgconv.cpp compile on VC 2005.
This commit is contained in:
parent
2358ab2b2b
commit
72fc19d01f
@ -25,6 +25,16 @@
|
|||||||
|
|
||||||
#include "OrientationConverter.h"
|
#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;
|
typedef std::vector<std::string> FileNameList;
|
||||||
|
|
||||||
|
|
||||||
@ -450,13 +460,12 @@ int main( int argc, char **argv )
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef _WIN32
|
|
||||||
std::string options;
|
std::string options;
|
||||||
while(arguments.read("--optimizer",options))
|
while(arguments.read("--optimizer",options))
|
||||||
{
|
{
|
||||||
setenv("OSG_OPTIMIZER",options.c_str(),1);
|
setenv("OSG_OPTIMIZER",options.c_str(),1);
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
FileNameList fileNames;
|
FileNameList fileNames;
|
||||||
OrientationConverter oc;
|
OrientationConverter oc;
|
||||||
|
Loading…
Reference in New Issue
Block a user