Fix windows and osx builds
Summary: Closes https://github.com/facebook/yoga/pull/555 Reviewed By: emilsjolander Differential Revision: D5071045 Pulled By: splhack fbshipit-source-id: f9e387242055e0a4a7c330c7bf99ed4a4b4057be
This commit is contained in:
committed by
Facebook Github Bot
parent
fa54167a20
commit
49bccf47fa
@@ -33,6 +33,9 @@ namespace Facebook.Yoga.Mac.Tests
|
||||
|
||||
}
|
||||
|
||||
[System.Runtime.InteropServices.DllImport("/usr/lib/libSystem.dylib")]
|
||||
static extern void _exit(int exit_code);
|
||||
|
||||
class NSRunLoopIntegration : NSObject, IMainLoopIntegration
|
||||
{
|
||||
public void InitializeToolkit()
|
||||
@@ -51,7 +54,7 @@ namespace Facebook.Yoga.Mac.Tests
|
||||
|
||||
public void Shutdown()
|
||||
{
|
||||
Environment.Exit(TestRunner.ExitCode);
|
||||
_exit(TestRunner.ExitCode);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user