diff options
Diffstat (limited to 'lib/Input.cc')
-rw-r--r-- | lib/Input.cc | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/lib/Input.cc b/lib/Input.cc index 22a688d..cf44385 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.42 2004-01-23 02:21:01 pixel Exp $ */ +/* $Id: Input.cc,v 1.43 2004-04-30 08:21:36 pixel Exp $ */ #include <stdio.h> #include <string.h> @@ -110,9 +110,18 @@ Input::Input(const String & no) throw (GeneralException) : #ifdef __linux__ if (S_ISREG(s.st_mode)) { #endif - size = seek(0, SEEK_END); +#if 0 +#if defined (_WIN32) && !defined (NO_HFILE) + if (hFile) { + GetFileSize(hFile, (LPDWORD)&size); + } else +#endif +#endif + { + size = seek(0, SEEK_END); + seek(0, SEEK_SET); + } #ifdef __linux__ - seek(0, SEEK_SET); } #endif } else { |