2017-11-14 19:44 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* contrib/hbmzip/mzip.c
    * use 'char *' instead of 'zipcharpc' to compile with minizip versions
      which do not define 'zipcharpc' type
This commit is contained in:
Przemysław Czerpak
2017-11-14 19:44:22 +01:00
parent 390711bd22
commit 3bb0f06ec9
2 changed files with 10 additions and 5 deletions

View File

@@ -237,10 +237,10 @@ HB_FUNC( HB_ZIPOPEN )
if( szFileName )
{
zipcharpc pszGlobalComment = NULL;
char * pszFree;
zipFile hZip = zipOpen2( hb_fsNameConv( szFileName, &pszFree ), hb_parnidef( 2, APPEND_STATUS_CREATE ),
&pszGlobalComment, NULL );
const char * pszGlobalComment = NULL;
char * pszFree;
zipFile hZip = zipOpen2( hb_fsNameConv( szFileName, &pszFree ), hb_parnidef( 2, APPEND_STATUS_CREATE ),
&pszGlobalComment, NULL );
if( pszFree )
hb_xfree( pszFree );
@@ -253,7 +253,7 @@ HB_FUNC( HB_ZIPOPEN )
hb_retptrGC( phZip );
if( pszGlobalComment )
hb_storc( ( const char * ) pszGlobalComment, 3 );
hb_storc( pszGlobalComment, 3 );
}
}
else