@@ -159,17 +159,10 @@ @interface OFFileSingleton: OFFile @end @implementation OFFile -+ (void)load -{ - of_stdin = [[OFFileSingleton alloc] initWithFileDescriptor: 0]; - of_stdout = [[OFFileSingleton alloc] initWithFileDescriptor: 1]; - of_stderr = [[OFFileSingleton alloc] initWithFileDescriptor: 2]; -} - #if defined(OF_THREADS) && !defined(_WIN32) + (void)initialize { if (self != [OFFile class]) return; @@ -786,10 +779,17 @@ [super dealloc]; } @end @implementation OFFileSingleton ++ (void)load +{ + of_stdin = [[OFFileSingleton alloc] initWithFileDescriptor: 0]; + of_stdout = [[OFFileSingleton alloc] initWithFileDescriptor: 1]; + of_stderr = [[OFFileSingleton alloc] initWithFileDescriptor: 2]; +} + - initWithPath: (OFString*)path mode: (OFString*)mode { Class c = isa; [self release];