diff options
author | 1997-12-03 05:31:15 +0000 | |
---|---|---|
committer | 1997-12-03 05:31:15 +0000 | |
commit | 9f1aa62bdc2bfda9dfad16d200123598204e9328 (patch) | |
tree | ecce90344fb1e3df86786846b8ead31e0e9aea53 /lib/libmenu/mf_common.h | |
parent | Merge of ncurses-4.1-971129 (diff) | |
download | wireguard-openbsd-9f1aa62bdc2bfda9dfad16d200123598204e9328.tar.xz wireguard-openbsd-9f1aa62bdc2bfda9dfad16d200123598204e9328.zip |
merge of ncurses-4.1-971129
Diffstat (limited to 'lib/libmenu/mf_common.h')
-rw-r--r-- | lib/libmenu/mf_common.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libmenu/mf_common.h b/lib/libmenu/mf_common.h index 1e0b3caf6bf..72f7344342a 100644 --- a/lib/libmenu/mf_common.h +++ b/lib/libmenu/mf_common.h @@ -1,3 +1,5 @@ +/* $OpenBSD: mf_common.h,v 1.3 1997/12/03 05:31:29 millert Exp $ */ + /*-----------------------------------------------------------------------------+ | The ncurses menu library is Copyright (C) 1995-1997 | | by Juergen Pfeifer <Juergen.Pfeifer@T-Online.de> | @@ -31,15 +33,12 @@ #include <assert.h> #include <string.h> #include <ctype.h> +#include <errno.h> -#if !HAVE_EXTERN_ERRNO +#if DECL_ERRNO extern int errno; #endif -#if HAVE_EXTERN_ERRNO -#include <errno.h> -#endif - /* in case of debug version we ignore the suppression of assertions */ #ifdef TRACE # ifdef NDEBUG @@ -60,6 +59,7 @@ extern int errno; #define MAX_REGULAR_CHARACTER (0xff) #define SET_ERROR(code) (errno=(code)) +#define GET_ERROR() (errno) #define RETURN(code) return( SET_ERROR(code) ) /* The few common values in the status fields for menus and forms */ |