From f35a6040c12d1b827823ac9814f74050f3706e1e Mon Sep 17 00:00:00 2001 From: kan Date: Mon, 19 May 2003 20:29:07 +0000 Subject: sys/sys/limits.h: - Fix visibilty test for LONG_BIT and WORD_BIT. `#if defined(__FOO_VISIBLE)' is alays wrong because __FOO_VISIBLE is always defined (to 0 for invisibility). sys//include/limits.h sys//include/_limits.h: - Style fixes. Submitted by: bde Reviewed by: bsdmike Approved by: re (scottl) --- sys/arm/include/_limits.h | 4 ++-- sys/arm/include/limits.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/arm/include') diff --git a/sys/arm/include/_limits.h b/sys/arm/include/_limits.h index 321a769..15c1f5f 100644 --- a/sys/arm/include/_limits.h +++ b/sys/arm/include/_limits.h @@ -37,8 +37,6 @@ #ifndef _MACHINE__LIMITS_H_ #define _MACHINE__LIMITS_H_ -#define __CHAR_BIT 8 /* number of bits in a char */ - /* * According to ANSI (section 2.2.4.2), the values below must be usable by * #if preprocessing directives. Additionally, the expression must have the @@ -50,6 +48,8 @@ * some other compilers as well, but this should not be depended on. */ +#define __CHAR_BIT 8 /* number of bits in a char */ + #define __SCHAR_MAX 0x7f /* max value for a signed char */ #define __SCHAR_MIN (-0x7f - 1) /* min value for a signed char */ diff --git a/sys/arm/include/limits.h b/sys/arm/include/limits.h index 58dac20..62a34ef 100644 --- a/sys/arm/include/limits.h +++ b/sys/arm/include/limits.h @@ -34,7 +34,7 @@ * $FreeBSD$ */ -#ifndef _MACHINE_LIMITS_H_ +#ifndef _MACHINE_LIMITS_H_ #define _MACHINE_LIMITS_H_ #if __GNUC__ -- cgit v1.1