Missing _ Before XBOX - Solved the text output bug.

This commit is contained in:
Renaud Lepage
2004-07-21 02:36:21 +00:00
parent 43b9b6385e
commit 2f074da106
2 changed files with 4 additions and 4 deletions
@@ -17,7 +17,7 @@
#include <io.h> #include <io.h>
#endif #endif
#if defined(XBOX) #if defined(_XBOX)
/* Wrappers for low-level file functions, to work around Xbox issues: */ /* Wrappers for low-level file functions, to work around Xbox issues: */
int DoMkdir( const CString &sPath, int perm ) int DoMkdir( const CString &sPath, int perm )
{ {
@@ -100,7 +100,7 @@ int WinMoveFileInternal( const CString &sOldPath, const CString &sNewPath )
int WinMoveFile( CString sOldPath, CString sNewPath ) int WinMoveFile( CString sOldPath, CString sNewPath )
{ {
#if defined(XBOX) #if defined(_XBOX)
sOldPath.Replace( "/", "\\" ); sOldPath.Replace( "/", "\\" );
sNewPath.Replace( "/", "\\" ); sNewPath.Replace( "/", "\\" );
#endif #endif
@@ -152,7 +152,7 @@ bool PathReady( CString path )
// Try to write a file. // Try to write a file.
const CString sFile = path + "temp"; const CString sFile = path + "temp";
int fd = DoOpen( sFile, O_WRONLY|O_CREAT|O_TRUNC ); int fd = DoOpen( sFile, O_WRONLY|O_CREAT|O_TRUNC, 0644 ); //last arg is a bogus one
if( fd == -1 ) if( fd == -1 )
return false; return false;
+1 -1
View File
@@ -5,7 +5,7 @@
#include <fcntl.h> #include <fcntl.h>
#if defined(XBOX) #if defined(_XBOX)
int DoMkdir( const CString &sPath, int perm ); int DoMkdir( const CString &sPath, int perm );
int DoOpen( const CString &sPath, int flags, int perm ); int DoOpen( const CString &sPath, int flags, int perm );
int DoStat( const CString &sPath, struct stat *st ); int DoStat( const CString &sPath, struct stat *st );