changelog for 0.9.1
[posh.git] / ksh_limval.h
blobe483b915a6f4751c3f0724ba735b8d0f6e528817
1 /* Wrapper around the values.h/limits.h includes/ifdefs */
2 /* $Id$ */
4 #ifdef HAVE_VALUES_H
5 # include <values.h>
6 #endif /* HAVE_VALUES_H */
7 /* limits.h is included in sh.h */
9 #ifndef DMAXEXP
10 # define DMAXEXP 128 /* should be big enough */
11 #endif
13 #ifndef BITSPERBYTE
14 # ifdef CHAR_BIT
15 # define BITSPERBYTE CHAR_BIT
16 # else
17 # define BITSPERBYTE 8 /* probably true.. */
18 # endif
19 #endif
21 #ifndef BITS
22 # define BITS(t) (BITSPERBYTE * sizeof(t))
23 #endif