Add support for WASI platform in Gia_ManGnuplotShow.

This commit is contained in:
whitequark 2020-04-30 17:08:33 +00:00 committed by Eddie Hung
parent eea20ff466
commit 70ed4da2ac
1 changed files with 4 additions and 0 deletions

View File

@ -2175,7 +2175,11 @@ void Gia_ManGnuplotShow( char * pPlotFileName )
{ {
char Command[1000]; char Command[1000];
sprintf( Command, "%s %s ", pProgNameGnuplot, pPlotFileName ); sprintf( Command, "%s %s ", pProgNameGnuplot, pPlotFileName );
#if defined(__wasm)
if ( 1 )
#else
if ( system( Command ) == -1 ) if ( system( Command ) == -1 )
#endif
{ {
fprintf( stdout, "Cannot execute \"%s\".\n", Command ); fprintf( stdout, "Cannot execute \"%s\".\n", Command );
return; return;