diff options
| author | Alan Mishchenko <alanmi@berkeley.edu> | 2021-12-16 11:32:53 +0700 | 
|---|---|---|
| committer | Alan Mishchenko <alanmi@berkeley.edu> | 2021-12-16 11:32:53 +0700 | 
| commit | f1b64be84071a431eac9871f8cdc71bc912fd75a (patch) | |
| tree | 3469c56e1d51b475dbac51ad7aac50188a535b3e | |
| parent | fb248e1ca1881e85abda65dafa143436d05035c6 (diff) | |
| download | abc-f1b64be84071a431eac9871f8cdc71bc912fd75a.tar.gz abc-f1b64be84071a431eac9871f8cdc71bc912fd75a.tar.bz2 abc-f1b64be84071a431eac9871f8cdc71bc912fd75a.zip | |
Compiler warning.
| -rw-r--r-- | src/base/wln/wlnRtl.c | 15 | 
1 files changed, 7 insertions, 8 deletions
| diff --git a/src/base/wln/wlnRtl.c b/src/base/wln/wlnRtl.c index 90fc768e..040c74bb 100644 --- a/src/base/wln/wlnRtl.c +++ b/src/base/wln/wlnRtl.c @@ -21,6 +21,13 @@  #include "wln.h"  #include "base/main/main.h" +#ifdef WIN32 +#include <process.h>  +#define unlink _unlink +#else +#include <unistd.h> +#endif +  ABC_NAMESPACE_IMPL_START  //////////////////////////////////////////////////////////////////////// @@ -110,11 +117,7 @@ Wln_Ntk_t * Wln_ReadSystemVerilog( char * pFileName, char * pTopModule, int fVer          printf( "Dumped the design into file \"%s\".\n", pFileTemp );          return NULL;      } -#ifdef WIN32 -    _unlink( pFileTemp ); -#else      unlink( pFileTemp ); -#endif      return pNtk;  }  Gia_Man_t * Wln_BlastSystemVerilog( char * pFileName, char * pTopModule, int fSkipStrash, int fInvert, int fVerbose ) @@ -139,11 +142,7 @@ Gia_Man_t * Wln_BlastSystemVerilog( char * pFileName, char * pTopModule, int fSk      ABC_FREE( pGia->pName );      pGia->pName = pTopModule ? Abc_UtilStrsav(pTopModule) :          Extra_FileNameGeneric( Extra_FileNameWithoutPath(pFileName) ); -#ifdef WIN32 -    _unlink( pFileTemp ); -#else      unlink( pFileTemp ); -#endif      // complement the outputs      if ( fInvert )      { | 
