From Bob Kuehne, fixes for OSX 10.4 build.

This commit is contained in:
Robert Osfield
2005-05-03 14:31:01 +00:00
parent 003329fd10
commit 2bb2d9bb37
7 changed files with 15 additions and 8 deletions

View File

@@ -344,7 +344,11 @@ FSSpec *darwinPathToFSSpec (char *fname ) {
FSRef ref;
/* convert the POSIX path to an FSRef */
#if defined( __APPLE__ ) && ( __GNUC__ > 3 )
result = FSPathMakeRef( (UInt8*)fname, &ref, false); // fname is not a directory
#else
result = FSPathMakeRef(fname, &ref, false); // fname is not a directory
#endif
if (result!=0) return NULL;
@@ -365,11 +369,11 @@ LoadBufferFromDarwinPath ( const char *fname, long *origWidth, long *origHeight,
long *buffDepth)
{
FSSpec *fs;
sprintf ( errMess, "" );
fs=darwinPathToFSSpec ( const_cast<char*>( fname ) );
if (fs == NULL) {
sprintf ( errMess, "error creating path from fsspec" );
return NULL;
}
else