1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2025-12-24 04:04:31 +00:00

Added #ifdef to fix compiler error on non windows platforms

This commit is contained in:
Bryan Roe
2022-10-31 17:23:54 -07:00
parent 0520e66dc6
commit 545a176b7d

View File

@@ -3765,7 +3765,9 @@ duk_ret_t ILibDuktape_ScriptContainer_Finalizer(duk_context *ctx)
ILibDuktape_ScriptContainer_Master *master = (ILibDuktape_ScriptContainer_Master*)Duktape_GetBuffer(ctx, -1, NULL);
if (master->child != NULL)
{
#ifdef WIN32
ILibProcessPipe_Process_RemoveHandlers(master->child);
#endif
ILibProcessPipe_Process_SoftKill(master->child);
}
else if (master->PeerChain != NULL)