mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-31 00:30:53 +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
1549f5b5e7
commit
b0c507570a
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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue