From fb434be153cd0ab0b9a3a10eeb90606c9b180aff Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Tue, 22 Jul 2008 10:55:58 +0000 Subject: [PATCH] 2008-07-22 12:55 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rtl/filesys.c * casting for DOS OpenWatcom builds and added missing header file --- harbour/ChangeLog | 4 ++++ harbour/source/rtl/filesys.c | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index d370185ae4..4470e67fa8 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,10 @@ 2008-12-31 13:59 UTC+0100 Foo Bar */ +2008-07-22 12:55 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/source/rtl/filesys.c + * casting for DOS OpenWatcom builds and added missing header file + 2008-07-22 12:30 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rtl/gtwvt/gtwvt.c * disabled SetWindowLongPtr() in 32bit MSVC WinCE builds diff --git a/harbour/source/rtl/filesys.c b/harbour/source/rtl/filesys.c index a6b2884965..6ffe71b075 100644 --- a/harbour/source/rtl/filesys.c +++ b/harbour/source/rtl/filesys.c @@ -180,10 +180,12 @@ #if defined(HB_OS_DOS) #include + #include #elif defined(HB_OS_OS2) #include #include #include + #include #include #ifndef SH_COMPAT #define SH_COMPAT 0x0000 @@ -990,7 +992,7 @@ HB_EXPORT BOOL hb_fsGetAttr( BYTE * pszFileName, ULONG * pulAttr ) if( attr != -1 ) #else unsigned int attr = 0; - if( _dos_getfileattr( pszFileName, &attr ) == 0 ) + if( _dos_getfileattr( ( char * ) pszFileName, &attr ) == 0 ) #endif { *pulAttr = hb_fsAttrFromRaw( attr );