Skip to content

Commit 06bd407

Browse files
committed
win32: use asm intrinsics alternative to __halt() on MinGW
1 parent dd31a77 commit 06bd407

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/shared/platform/win/nacl_exit.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ void NaClAbort(void) {
3939
* http://code.google.com/p/nativeclient/issues/detail?id=2772).
4040
*/
4141
while (1) {
42+
#if defined(_MSC_VER)
4243
__halt();
44+
#else
45+
__asm__("hlt");
46+
#endif
4347
}
4448
}
4549

0 commit comments

Comments
 (0)