* cygerrno.h (__set_errno): Define as inline function here.

(set_errno): Always define as call to __set_errno.
	* debug.cc (__set_errno): Move to cygerrno.h.
This commit is contained in:
Corinna Vinschen
2005-05-04 11:00:22 +00:00
parent f3b0036304
commit 5d4750a996
3 changed files with 13 additions and 13 deletions

View File

@@ -230,12 +230,4 @@ close_handle (const char *func, int ln, HANDLE h, const char *name, bool force)
#endif
return ret;
}
int __stdcall
__set_errno (const char *func, int ln, int val)
{
debug_printf ("%s:%d val %d", func, ln, val);
_impure_ptr->_errno = val;
return errno = val;
}
#endif /*DEBUGGING*/