From 72fc19d01f95ef5b2674fbaf4a9351c3468425e8 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Fri, 14 Jul 2006 18:40:25 +0000 Subject: [PATCH] From Brede Johansen, patch to make osgconv.cpp compile on VC 2005. --- applications/osgconv/osgconv.cpp | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/applications/osgconv/osgconv.cpp b/applications/osgconv/osgconv.cpp index dfcce9e92..286bddd18 100644 --- a/applications/osgconv/osgconv.cpp +++ b/applications/osgconv/osgconv.cpp @@ -25,6 +25,16 @@ #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; @@ -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;