port latest gc canges to windows

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@28090 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Richard Frith-MacDonald 2009-03-18 08:50:32 +00:00
parent 971de91d62
commit a4618dc473
8 changed files with 90 additions and 80 deletions

View file

@ -963,13 +963,15 @@ strerror_r(int eno, char *buf, int len)
*/
+ (NSError*) _last
{
#if defined(__MINGW32__)
return [self _systemError: GetLastError()];
#else
extern int errno;
return [self _systemError: errno];
int eno;
#if defined(__MINGW32__)
eno = GetLastError();
if (eno == 0) eno = errno;
#else
eno = errno;
#endif
return [self _systemError: eno];
}
+ (NSError*) _systemError: (long)code

View file

@ -485,22 +485,3 @@ BOOL GSDebugSet(NSString *level)
@end
@implementation NSLock (GSCompatibility)
/*
* Dummy implementation of garbage collection cleanup method called by
* GSLazyLock on deallocation.
*/
- (void) gcFinalize
{
}
@end
@implementation NSRecursiveLock (GSCompatibility)
/*
* Dummy implementation of garbage collection cleanup method called by
* GSLazyRecursiveLock on deallocation.
*/
- (void) gcFinalize
{
}
@end