changeset 8521:93cf10950334

tmpdir=tmpnam; tmpfile=tmpnam; dummy=1; save(tmpfile, "dummy") mkdir(tmpdir) gzfile=gzip(tmpfile, tmpdir) gunzip(gzfile) Include cstdio header. Without this header inclusion, compilation of oct-md5.cc and gethelp.cc with g++ 4.4 fails because symbols like sprintf, fopen, fread, fclose, and EOF are not found.
author Rafael Laboissiere <rafael@debian.org>
date Thu, 15 Jan 2009 00:50:20 -0500
parents 715f6cd8d5e7
children d65b33e55d40
files liboctave/ChangeLog liboctave/oct-md5.cc scripts/ChangeLog scripts/gethelp.cc
diffstat 4 files changed, 16 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/liboctave/ChangeLog	Thu Jan 15 00:36:18 2009 -0500
+++ b/liboctave/ChangeLog	Thu Jan 15 00:50:20 2009 -0500
@@ -1,3 +1,7 @@
+2008-01-15  Rafael Laboissiere  <rafael@debian.org>
+
+	* oct-md5.cc: Include <cstdio>.
+
 2009-01-13  Jaroslav Hajek  <highegg@gmail.com>
 
 	* Array.h (Array::ArrayRep::qsort): Remove.
--- a/liboctave/oct-md5.cc	Thu Jan 15 00:36:18 2009 -0500
+++ b/liboctave/oct-md5.cc	Thu Jan 15 00:50:20 2009 -0500
@@ -20,13 +20,15 @@
 
 */
 
-#include <string>
-#include <vector>
-
 #ifdef HAVE_CONFIG_H
 #include "config.h"
 #endif
 
+#include <cstdio>
+
+#include <string>
+#include <vector>
+
 #include "lo-error.h"
 #include "oct-md5.h"
 #include "md5.h"
--- a/scripts/ChangeLog	Thu Jan 15 00:36:18 2009 -0500
+++ b/scripts/ChangeLog	Thu Jan 15 00:50:20 2009 -0500
@@ -1,3 +1,7 @@
+2008-01-15  Rafael Laboissiere  <rafael@debian.org>
+
+	* gethelp.cc: Include <cstdio>.
+
 2009-01-14  Ben Abbott  <bpabbott@mac.com>
 
 	* plot/__go_draw_axes__.m (ticklabel_to_cell): New function.
--- a/scripts/gethelp.cc	Thu Jan 15 00:36:18 2009 -0500
+++ b/scripts/gethelp.cc	Thu Jan 15 00:50:20 2009 -0500
@@ -24,8 +24,10 @@
 #define __USE_STD_IOSTREAM
 #endif
 
+#include <cstdio>
+
+#include <iostream>
 #include <string>
-#include <iostream>
 
 static bool
 looks_like_octave_copyright (const std::string& s)