diff options
author | pixel <pixel> | 2004-01-22 22:48:40 +0000 |
---|---|---|
committer | pixel <pixel> | 2004-01-22 22:48:40 +0000 |
commit | 54b2e02ffad603e044cc62ba2e3da30291ecf14c (patch) | |
tree | 84690d569fa305b2870b2c8156aa450403eab2d4 /lib/Input.cc | |
parent | de5166d922c0edf25f1911b116eb51d9499476d4 (diff) |
Small Win32 fix
Diffstat (limited to 'lib/Input.cc')
-rw-r--r-- | lib/Input.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/Input.cc b/lib/Input.cc index c12c609..d81faef 100644 --- a/lib/Input.cc +++ b/lib/Input.cc @@ -17,7 +17,7 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ -/* $Id: Input.cc,v 1.40 2003-12-26 23:51:33 pixel Exp $ */ +/* $Id: Input.cc,v 1.41 2004-01-22 22:48:40 pixel Exp $ */ #include <stdio.h> #include <string.h> @@ -107,10 +107,14 @@ Input::Input(const String & no) throw (GeneralException) : fstat(GetHandle(), &s); date_modif = s.st_mtime; +#ifdef __linux__ if (S_ISREG(s.st_mode)) { +#endif size = seek(0, SEEK_END); +#ifdef __linux__ seek(0, SEEK_SET); } +#endif } else { #ifdef DEBUG printm(M_INFO, String(_("Opening file in archive, position ")) + results.ptr + "\n"); |