From 8d9bbb509261c62208169c46e7437839bffaec6b Mon Sep 17 00:00:00 2001 From: Corinna Vinschen Date: Mon, 2 Feb 2004 10:47:29 +0000 Subject: * cygerrno.h (set_errno): Replace semicolon with comma in non-DEBUGGING version to avoid compile time error. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/cygerrno.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 671ff0b..af3852b 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 12b6691..c1a0fd8 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)) -- cgit v1.1