Commit | Line | Data |
---|---|---|
1 | /* File : ourlims.h | |
2 | Author : Richard A. O'Keefe | |
3 | Defines: UCHAR_MAX, CHAR_BIT, LONG_BIT | |
4 | */ | |
5 | /* If <limits.h> is available, use that. | |
6 | Otherwise, use 8-bit byte as the default. | |
7 | If the number of characters is a power of 2, you might be able | |
8 | to use (unsigned char)(~0), but why get fancy? | |
9 | */ | |
10 | #ifdef __STDC__ | |
11 | #include <limits.h> | |
12 | #else | |
13 | #define UCHAR_MAX 255 | |
14 | #define CHAR_BIT 8 | |
15 | #endif | |
16 | #define LONG_BIT 32 |