octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

missing include in typecast.cc


From: CdeMills
Subject: missing include in typecast.cc
Date: Thu, 6 Sep 2012 02:21:47 -0700 (PDT)

Hello,

I'm still trying to debug hanging issues on Mac OS X 10.5. I would like to
start from a minimalist version, so
I configured octave by disabling everything that I could during the
configure stage.

The result is that the compilation fails in libinterp/corefcn/typecast.cc,
as there is no definition of CHAR_BIT. I suppose that, in the full version,
it came through another included octave header.

Here's the fix:
hg diff typecast.cc
diff -r 79baa37fde7a libinterp/corefcn/typecast.cc
--- a/libinterp/corefcn/typecast.cc     Thu Aug 30 08:47:33 2012 +0100
+++ b/libinterp/corefcn/typecast.cc     Thu Sep 06 11:15:53 2012 +0200
@@ -25,6 +25,8 @@
 #include <config.h>
 #endif
 
+#include <climits>
+
 #include "mx-base.h"
 
 #include "defun.h"

My version of "hg" sometimes has issues; I prefer not to push the fix
myself.

Regards

Pascal
http://octave.1599824.n4.nabble.com/file/n4643804/typecast.cc.pat
typecast.cc.pat 



--
View this message in context: 
http://octave.1599824.n4.nabble.com/missing-include-in-typecast-cc-tp4643804.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]