diff options
author | Christopher Faylor <me@cgf.cx> | 2013-01-21 07:34:07 +0000 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2013-01-21 07:34:07 +0000 |
commit | a526df1e205a71f5316be9b431b61db166ec4c12 (patch) | |
tree | 9b82ae377538386ccbd47309fbc537282fdf078e /winsup/cygwin/cygerrno.h | |
parent | 2033ccdd173feb5a4c2978d547bbd6669ff0f84e (diff) | |
download | newlib-a526df1e205a71f5316be9b431b61db166ec4c12.zip newlib-a526df1e205a71f5316be9b431b61db166ec4c12.tar.gz newlib-a526df1e205a71f5316be9b431b61db166ec4c12.tar.bz2 |
* cygerrno.h: Conditionally define __regN for cygserver.
Diffstat (limited to 'winsup/cygwin/cygerrno.h')
-rw-r--r-- | winsup/cygwin/cygerrno.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/winsup/cygwin/cygerrno.h b/winsup/cygwin/cygerrno.h index c861907..677b3b0 100644 --- a/winsup/cygwin/cygerrno.h +++ b/winsup/cygwin/cygerrno.h @@ -13,6 +13,16 @@ details. */ #define _CYGERRNO_H #include <errno.h> +#ifndef __reg1 +# define __reg1 __stdcall __attribute__ ((regparm (1))) +#endif +#ifndef __reg2 +# define __reg2 __stdcall __attribute__ ((regparm (2))) +#endif +#ifndef __reg2 +# define __reg2 __stdcall __attribute__ ((regparm (2))) +#endif + void __reg3 seterrno_from_win_error (const char *file, int line, DWORD code); void __reg3 seterrno_from_nt_status (const char *file, int line, NTSTATUS status); void __reg2 seterrno (const char *, int line); |