NetBSD/usr.bin/m4/ourlims.h
mycroft aee4b07b8a Add RCS identifiers, remove some completely useless RCS logs and patchkit
headers, and a few other insignificant changes.
1993-08-02 17:48:44 +00:00

19 lines
477 B
C

/* File : ourlims.h
Author : Richard A. O'Keefe
Defines: UCHAR_MAX, CHAR_BIT, LONG_BIT
$Id: ourlims.h,v 1.2 1993/08/02 17:54:46 mycroft Exp $
*/
/* If <limits.h> is available, use that.
Otherwise, use 8-bit byte as the default.
If the number of characters is a power of 2, you might be able
to use (unsigned char)(~0), but why get fancy?
*/
#ifdef __STDC__
#include <limits.h>
#else
#define UCHAR_MAX 255
#define CHAR_BIT 8
#endif
#define LONG_BIT 32