# HG changeset patch # User Rafael Laboissiere # Date 1231998620 18000 # Node ID 93cf10950334908b990b504e0d14d14430303176 # Parent 715f6cd8d5e7d51de0cc22ade86e89552ed490cd 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. diff --git a/liboctave/ChangeLog b/liboctave/ChangeLog --- a/liboctave/ChangeLog +++ b/liboctave/ChangeLog @@ -1,3 +1,7 @@ +2008-01-15 Rafael Laboissiere + + * oct-md5.cc: Include . + 2009-01-13 Jaroslav Hajek * Array.h (Array::ArrayRep::qsort): Remove. diff --git a/liboctave/oct-md5.cc b/liboctave/oct-md5.cc --- a/liboctave/oct-md5.cc +++ b/liboctave/oct-md5.cc @@ -20,13 +20,15 @@ */ -#include -#include - #ifdef HAVE_CONFIG_H #include "config.h" #endif +#include + +#include +#include + #include "lo-error.h" #include "oct-md5.h" #include "md5.h" diff --git a/scripts/ChangeLog b/scripts/ChangeLog --- a/scripts/ChangeLog +++ b/scripts/ChangeLog @@ -1,3 +1,7 @@ +2008-01-15 Rafael Laboissiere + + * gethelp.cc: Include . + 2009-01-14 Ben Abbott * plot/__go_draw_axes__.m (ticklabel_to_cell): New function. diff --git a/scripts/gethelp.cc b/scripts/gethelp.cc --- a/scripts/gethelp.cc +++ b/scripts/gethelp.cc @@ -24,8 +24,10 @@ #define __USE_STD_IOSTREAM #endif +#include + +#include #include -#include static bool looks_like_octave_copyright (const std::string& s)