summaryrefslogtreecommitdiff
path: root/values.h
diff options
context:
space:
mode:
Diffstat (limited to 'values.h')
-rw-r--r--values.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/values.h b/values.h
index 0b2b661abd..3c82842870 100644
--- a/values.h
+++ b/values.h
@@ -1,5 +1,5 @@
/* Old compatibility names for <limits.h> and <float.h> constants.
- Copyright (C) 1995, 1996 Free Software Foundation, Inc.
+ Copyright (C) 1995, 1996, 1997 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -21,7 +21,9 @@
<limits.h> and/or <float.h> instead of <values.h>. */
#ifndef _VALUES_H
+
#define _VALUES_H 1
+#include <features.h>
#include <limits.h>
@@ -30,7 +32,7 @@
#define CHARBITS _TYPEBITS (char)
#define SHORTBITS _TYPEBITS (short int)
#define INTBITS _TYPEBITS (int)
-#define LONGBITS _TYPEBITS (long)
+#define LONGBITS _TYPEBITS (long int)
#define PTRBITS _TYPEBITS (char *)
#define DOUBLEBITS _TYPEBITS (double)
#define FLOATBITS _TYPEBITS (float)
@@ -59,4 +61,9 @@
#define FMAXEXP FLT_MAX_EXP
+#ifdef __USE_MISC
+/* Some systems define this name instead of CHAR_BIT or CHARBITS. */
+#define BITSPERBYTE CHAR_BIT
+#endif
+
#endif /* values.h */