* cygerrno.h (set_errno): Replace semicolon with comma in non-DEBUGGING

version to avoid compile time error.
This commit is contained in:
Corinna Vinschen 2004-02-02 10:47:29 +00:00
parent a37903bc43
commit 8d9bbb5092
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-02-02 Corinna Vinschen <corinna@vinschen.de>
* cygerrno.h (set_errno): Replace semicolon with comma in non-DEBUGGING
version to avoid compile time error.
2004-02-01 Christopher Faylor <cgf@redhat.com>
* cygerrno.h (set_errno): Set global errno whenever setting thread

View File

@ -18,7 +18,7 @@ int __stdcall geterrno_from_win_error (DWORD code, int deferrno) __attribute__ (
#define __seterrno_from_win_error(val) seterrno_from_win_error (__FILE__, __LINE__, val)
#ifndef DEBUGGING
#define set_errno(val) (errno = (val); _impure_ptr->_errno = (val))
#define set_errno(val) (errno = (val), _impure_ptr->_errno = (val))
#else
int __stdcall __set_errno (const char *ln, int ln, int val) __attribute ((regparm(3)));
#define set_errno(val) __set_errno (__PRETTY_FUNCTION__, __LINE__, (val))