diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 671ff0b8e..af3852b5c 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2004-02-02 Corinna Vinschen + + * cygerrno.h (set_errno): Replace semicolon with comma in non-DEBUGGING + version to avoid compile time error. + 2004-02-01 Christopher Faylor * cygerrno.h (set_errno): Set global errno whenever setting thread diff --git a/winsup/cygwin/cygerrno.h b/winsup/cygwin/cygerrno.h index 12b6691b7..c1a0fd821 100644 --- a/winsup/cygwin/cygerrno.h +++ b/winsup/cygwin/cygerrno.h @@ -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))