aboutsummaryrefslogtreecommitdiff
path: root/sys/alpha/include
diff options
context:
space:
mode:
authorAlexander Kabaev <kan@FreeBSD.org>2003-05-19 20:29:07 +0000
committerAlexander Kabaev <kan@FreeBSD.org>2003-05-19 20:29:07 +0000
commit980ded9a7d8747828c4ec547654c90cbcb3b6910 (patch)
tree50ba8da890b4f95538f1ac9f649e5f45bc727251 /sys/alpha/include
parent4a3284a150774a28e1c38733860ede6d00fa1a52 (diff)
downloadsrc-980ded9a7d8747828c4ec547654c90cbcb3b6910.tar.gz
src-980ded9a7d8747828c4ec547654c90cbcb3b6910.zip
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/<arch>/include/limits.h sys/<arch>/include/_limits.h: - Style fixes. Submitted by: bde Reviewed by: bsdmike Approved by: re (scottl)
Notes
Notes: svn path=/head/; revision=115164
Diffstat (limited to 'sys/alpha/include')
-rw-r--r--sys/alpha/include/_limits.h6
-rw-r--r--sys/alpha/include/limits.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/alpha/include/_limits.h b/sys/alpha/include/_limits.h
index 9e8dc467951d..7bca9edc3ac6 100644
--- a/sys/alpha/include/_limits.h
+++ b/sys/alpha/include/_limits.h
@@ -35,11 +35,9 @@
* $FreeBSD$
*/
-#ifndef _MACHINE__LIMITS_H_
+#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
@@ -51,6 +49,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/alpha/include/limits.h b/sys/alpha/include/limits.h
index cbbcf5926796..02ba71328158 100644
--- a/sys/alpha/include/limits.h
+++ b/sys/alpha/include/limits.h
@@ -35,7 +35,7 @@
* $FreeBSD$
*/
-#ifndef _MACHINE_LIMITS_H_
+#ifndef _MACHINE_LIMITS_H_
#define _MACHINE_LIMITS_H_
#if __GNUC__