[project @ 2006-10-18 02:16:07 by jwe]
author |
jwe |
date |
Wed, 18 Oct 2006 02:16:07 +0000 |
parents |
0cc5f8afba3f |
children |
8fd77759707c |
files |
liboctave/ChangeLog liboctave/oct-types.h.in |
diffstat |
2 files changed, 6 insertions(+), 0 deletions(-)
[+]
|
line diff
--- a/liboctave/ChangeLog
+++ b/liboctave/ChangeLog
@@ -1,5 +1,7 @@
2006-10-13 Michael Goffioul <michael.goffioul@swing.be>
+ * oct-types.h.in: Include limits.h, for CHAR_BIT.
+
* Makefile.in: Adapt rules to use $(LIBPRE).
2006-10-03 David Bateman <dbateman@free.fr>
--- a/liboctave/oct-types.h.in
+++ b/liboctave/oct-types.h.in
@@ -32,6 +32,10 @@
#include <inttypes.h>
#else
+#if defined (HAVE_LIMITS_H)
+#include <limits.h>
+#endif
+
#if CHAR_BIT == 8
typedef signed char int8_t;
typedef unsigned char uint8_t;