Replace (sizeof (char) << 3) with a less silly-looking CHAR_BIT;
from Peter Seebach in PR standards/9333.
This commit is contained in:
parent
13e5178e3d
commit
7aa4bf8f8f
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: ctype.h,v 1.19 2001/01/21 10:44:15 itojun Exp $ */
|
/* $NetBSD: ctype.h,v 1.20 2001/04/17 20:09:50 kleink Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1989 The Regents of the University of California.
|
* Copyright (c) 1989 The Regents of the University of California.
|
||||||
|
@ -124,7 +124,7 @@ __END_DECLS
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef _CTYPE_PRIVATE
|
#ifdef _CTYPE_PRIVATE
|
||||||
#define _CTYPE_NUM_CHARS (1<<(sizeof(char)<<3))
|
#define _CTYPE_NUM_CHARS (1 << CHAR_BIT)
|
||||||
|
|
||||||
#define _CTYPE_ID "BSDCTYPE"
|
#define _CTYPE_ID "BSDCTYPE"
|
||||||
#define _CTYPE_REV 2
|
#define _CTYPE_REV 2
|
||||||
|
|
Loading…
Reference in New Issue