@@ -51,7 +51,7 @@ static int CmdCommandUnsetVariable ( Abc_Frame_t * pAbc, int argc, char ** argv
51
51
static int CmdCommandUndo ( Abc_Frame_t * pAbc , int argc , char * * argv );
52
52
static int CmdCommandRecall ( Abc_Frame_t * pAbc , int argc , char * * argv );
53
53
static int CmdCommandEmpty ( Abc_Frame_t * pAbc , int argc , char * * argv );
54
- #if defined(WIN32 ) && !defined( __cplusplus )
54
+ #if defined(WIN32 )
55
55
static int CmdCommandScanDir ( Abc_Frame_t * pAbc , int argc , char * * argv );
56
56
static int CmdCommandRenameFiles ( Abc_Frame_t * pAbc , int argc , char * * argv );
57
57
static int CmdCommandLs ( Abc_Frame_t * pAbc , int argc , char * * argv );
@@ -105,7 +105,7 @@ void Cmd_Init( Abc_Frame_t * pAbc )
105
105
Cmd_CommandAdd ( pAbc , "Basic" , "undo" , CmdCommandUndo , 0 );
106
106
Cmd_CommandAdd ( pAbc , "Basic" , "recall" , CmdCommandRecall , 0 );
107
107
Cmd_CommandAdd ( pAbc , "Basic" , "empty" , CmdCommandEmpty , 0 );
108
- #if defined(WIN32 ) && !defined( __cplusplus )
108
+ #if defined(WIN32 )
109
109
Cmd_CommandAdd ( pAbc , "Basic" , "scandir" , CmdCommandScanDir , 0 );
110
110
Cmd_CommandAdd ( pAbc , "Basic" , "renamefiles" , CmdCommandRenameFiles , 0 );
111
111
Cmd_CommandAdd ( pAbc , "Basic" , "ls" , CmdCommandLs , 0 );
@@ -1209,7 +1209,7 @@ int CmdCommandUndo( Abc_Frame_t * pAbc, int argc, char **argv )
1209
1209
#endif
1210
1210
1211
1211
1212
- #if defined(WIN32 ) && !defined( __cplusplus )
1212
+ #if defined(WIN32 )
1213
1213
#include <direct.h>
1214
1214
#include <io.h>
1215
1215
@@ -1395,10 +1395,10 @@ int CmfFindNumber( char * pName )
1395
1395
***********************************************************************/
1396
1396
void CnfDupFileUnzip ( char * pOldName )
1397
1397
{
1398
- extern char * Io_MvLoadFileBz2 ( char * pFileName , int * pnFileSize );
1398
+ extern char * Io_MvLoadFileBz2 ( char * pFileName , long * pnFileSize );
1399
1399
char pNewName [1000 ];
1400
1400
FILE * pFile ;
1401
- int nFileSize ;
1401
+ long nFileSize ;
1402
1402
char * pBuffer = Io_MvLoadFileBz2 ( pOldName , & nFileSize );
1403
1403
assert ( strlen (pOldName ) < 1000 );
1404
1404
sprintf ( pNewName , "%s.v" , pOldName );
0 commit comments