diff --git a/harbour/ChangeLog b/harbour/ChangeLog index caff55abe6..d531907a27 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,7 @@ +19990905-02:47 EDT Paul Tucker + * source/rtl/filesys.c + * casts on access() and in HB_FILE + 19990904-23:35 EDT David G. Holm * include/hbver.h * Bumped revision from "a" to "b". diff --git a/harbour/source/rtl/filesys.c b/harbour/source/rtl/filesys.c index 1ed8ad1956..92325c4fa6 100644 --- a/harbour/source/rtl/filesys.c +++ b/harbour/source/rtl/filesys.c @@ -1054,7 +1054,7 @@ BOOL hb_fsFile ( BYTE * pFilename ) /* TODO: Check if F_OK is defined in all compilers */ #ifdef OS_UNIX_COMPATIBLE - is_file = ( access( pFilename, F_OK ) == 0 ); + is_file = ( access( (const char *)pFilename, F_OK ) == 0 ); #else @@ -1070,7 +1070,7 @@ BOOL hb_fsFile ( BYTE * pFilename ) #else - is_file = ( access( pFilename, 0 ) == 0 ); + is_file = ( access( (const char *)pFilename, 0 ) == 0 ); #endif @@ -1085,7 +1085,7 @@ HARBOUR HB_FILE( void ) { if( ISCHAR( 1 ) ) { - hb_retl( hb_fsFile( hb_parc( 1 ) ) ); + hb_retl( hb_fsFile( (BYTE *)hb_parc( 1 ) ) ); } else hb_retl( FALSE );