@@ -37,11 +37,11 @@ #import "OFOutOfRangeException.h" #import "OFReadFailedException.h" #import "OFWriteFailedException.h" -#ifdef OF_MORPHOS +#if defined(OF_MORPHOS) && !defined(OF_IXEMUL) # define BOOL EXEC_BOOL # include # include # undef BOOL @@ -96,11 +96,11 @@ @implementation OFStdIOStream #ifndef OF_WINDOWS + (void)load { -# ifndef OF_MORPHOS +# if !defined(OF_MORPHOS) || defined(OF_IXEMUL) of_stdin = [[OFStdIOStream alloc] of_initWithFileDescriptor: 0]; of_stdout = [[OFStdIOStream alloc] of_initWithFileDescriptor: 1]; of_stderr = [[OFStdIOStream alloc] of_initWithFileDescriptor: 2]; # else of_stdin = [[OFStdIOStream alloc] of_initWithFileDescriptor: Input()]; @@ -186,11 +186,11 @@ requestedLength: length errNo: errno]; #endif } -#if !defined(OF_WINDOWS) && !defined(OF_MORPHOS) +#if !defined(OF_WINDOWS) && (!defined(OF_MORPHOS) || defined(OF_IXEMUL)) - (int)fileDescriptorForReading { return _fd; }