Mercurial > hg > octave-nkf
comparison scripts/gethelp.cc @ 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 | 0ef13e15319b |
children | eb63fbe60fab |
comparison
equal
deleted
inserted
replaced
8520:715f6cd8d5e7 | 8521:93cf10950334 |
---|---|
22 | 22 |
23 #if defined (__DECCXX) | 23 #if defined (__DECCXX) |
24 #define __USE_STD_IOSTREAM | 24 #define __USE_STD_IOSTREAM |
25 #endif | 25 #endif |
26 | 26 |
27 #include <cstdio> | |
28 | |
29 #include <iostream> | |
27 #include <string> | 30 #include <string> |
28 #include <iostream> | |
29 | 31 |
30 static bool | 32 static bool |
31 looks_like_octave_copyright (const std::string& s) | 33 looks_like_octave_copyright (const std::string& s) |
32 { | 34 { |
33 // Perhaps someday we will want to do more here, so leave this as a | 35 // Perhaps someday we will want to do more here, so leave this as a |