From e2294b61e15781ca784a611e8ca7dabe132ebc6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Mon, 7 Jun 2021 14:12:11 +0200 Subject: First commit (NetBSD 9.1) --- ksh_limval.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 ksh_limval.h (limited to 'ksh_limval.h') diff --git a/ksh_limval.h b/ksh_limval.h new file mode 100644 index 0000000..42e38bb --- /dev/null +++ b/ksh_limval.h @@ -0,0 +1,25 @@ +/* $NetBSD: ksh_limval.h,v 1.2 1997/01/12 19:11:59 tls Exp $ */ + +/* Wrapper around the values.h/limits.h includes/ifdefs */ +/* $NetBSD: ksh_limval.h,v 1.2 1997/01/12 19:11:59 tls Exp $ */ + +#ifdef HAVE_VALUES_H +# include +#endif /* HAVE_VALUES_H */ +/* limits.h is included in sh.h */ + +#ifndef DMAXEXP +# define DMAXEXP 128 /* should be big enough */ +#endif + +#ifndef BITSPERBYTE +# ifdef CHAR_BIT +# define BITSPERBYTE CHAR_BIT +# else +# define BITSPERBYTE 8 /* probably true.. */ +# endif +#endif + +#ifndef BITS +# define BITS(t) (BITSPERBYTE * sizeof(t)) +#endif -- cgit v1.2.3