2015-09-10 09:03 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* src/rtl/filesys.c
    ! use CRTL eof() function only in non DJGPP DOS builds
This commit is contained in:
Przemysław Czerpak
2015-09-10 09:03:23 +02:00
parent dc326d6f4a
commit fcd32e5f59
2 changed files with 8 additions and 6 deletions

View File

@@ -10,6 +10,10 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2015-09-10 09:03 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/filesys.c
! use CRTL eof() function only in non DJGPP DOS builds
2015-09-09 23:16 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbhpdf/3rd/libhpdf/hpdfimac.c
! removed obsolete memory.h

View File

@@ -4524,9 +4524,10 @@ HB_BOOL hb_fsEof( HB_FHANDLE hFileHandle )
hb_vmUnlock();
#if defined( __DJGPP__ ) || defined( __CYGWIN__ ) || \
defined( HB_OS_WIN ) || defined( HB_OS_WIN_CE ) || \
defined( HB_OS_UNIX )
#if defined( HB_OS_DOS ) && ! defined( __DJGPP__ )
fResult = eof( hFileHandle ) != 0;
hb_fsSetIOError( fResult, 0 );
#else
{
HB_FOFFSET curPos;
HB_FOFFSET endPos;
@@ -4547,9 +4548,6 @@ HB_BOOL hb_fsEof( HB_FHANDLE hFileHandle )
hb_fsSetIOError( fResult, 0 );
fResult = ! fResult || curPos >= endPos;
}
#else
fResult = eof( hFileHandle ) != 0;
hb_fsSetIOError( fResult, 0 );
#endif
hb_vmLock();