From 3e92c8d2fe7c00e74fd9eaf9e41fb13e60012e83 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Tue, 23 Apr 2002 15:01:55 +0000 Subject: [PATCH] Fixed compilation problem associated wirh moving FileUtils source out into seperate files. --- src/osgDB/FileUtils_Windows.cpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/src/osgDB/FileUtils_Windows.cpp b/src/osgDB/FileUtils_Windows.cpp index fdc367059..a16366922 100644 --- a/src/osgDB/FileUtils_Windows.cpp +++ b/src/osgDB/FileUtils_Windows.cpp @@ -148,6 +148,20 @@ Under Windows char *osgDB::findDSO( const char *name ) { + char path[FILEUTILS_MAX_PATH_LENGTH]; + char *ptr; + + strcpy( path, "./" ); + + if((ptr = getenv( "OSG_LD_LIBRARY_PATH" ))) + { + strcat( path, PathDelimitor ); + strcat( path, ptr ); + } + + strcat( path, PathDelimitor ); + strcat( path, s_default_dso_path ); + if ((ptr = getenv( "PATH" ))) { notify(DEBUG_INFO) << "PATH = "<