Commit 70ed4da2 by whitequark Committed by Eddie Hung

Add support for WASI platform in Gia_ManGnuplotShow.

parent eea20ff4
...@@ -2175,7 +2175,11 @@ void Gia_ManGnuplotShow( char * pPlotFileName ) ...@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment