Added Visual Studio files for osgPlugin net

This commit is contained in:
Don BURNS
2004-08-31 21:06:01 +00:00
parent 3c0ea75e28
commit 573079fbae
3 changed files with 140 additions and 10 deletions

View File

@@ -4,10 +4,12 @@
#include <iostream>
#include <stdio.h>
#ifndef WIN32
#include <libgen.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#endif
#include <errno.h>
#include <string>
@@ -19,6 +21,9 @@ namespace TemporaryFileUtils {
bool makeDirectory( const std::string &path )
{
#ifdef WIN32
return false;
#else
char *cpath = new char[path.length()+1];
strcpy( cpath, path.c_str());
char *p = dirname(cpath);
@@ -72,6 +77,7 @@ bool makeDirectory( const std::string &path )
paths.pop();
}
return true;
#endif
}
}