mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-29 16:01:38 +00:00
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:
parent
971de91d62
commit
a4618dc473
8 changed files with 90 additions and 80 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue