forked from speed-dreams/speed-dreams-code
Ported last changes of simplix to Unix (getcwd and direct.h issues)
git-svn-id: https://svn.code.sf.net/p/speed-dreams/code/trunk@534 30fe4595-0a0c-4342-8851-515496e4dcbd Former-commit-id: 75d12eb83273860491bce73f19e2057e51441bcb Former-commit-id: aa1324fce49a75052c627b9d8a6dad09628674b8
This commit is contained in:
parent
0f1dfeb884
commit
be8bcb3633
1 changed files with 7 additions and 2 deletions
|
@ -62,10 +62,15 @@
|
|||
#include <tgf.h>
|
||||
#include <robottools.h>
|
||||
|
||||
#ifdef WIN32
|
||||
#include <direct.h>
|
||||
#endif
|
||||
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include <portability.h>
|
||||
|
||||
#include "unitglobal.h"
|
||||
#include "unitcommon.h"
|
||||
|
||||
|
@ -419,8 +424,8 @@ void TDriver::InitTrack
|
|||
char* TestBaseParamPath;
|
||||
|
||||
// Get the current working directory:
|
||||
if( (TestBaseParamPath = _getcwd( NULL, 0 )) == NULL )
|
||||
perror( "_getcwd error" );
|
||||
if( (TestBaseParamPath = getcwd( NULL, 0 )) == NULL )
|
||||
perror( "getcwd error" );
|
||||
else
|
||||
{
|
||||
printf( "\n\n\n%s \nLength: %d\n\n\n", TestBaseParamPath, strlen(TestBaseParamPath) );
|
||||
|
|
Loading…
Reference in a new issue