Commit 3453a220 authored by Keith Randall's avatar Keith Randall

runtime: only define SEH when we need it.

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/11769043
parent 9b1f1833
......@@ -485,10 +485,14 @@ runtime·starttheworld(void)
void
runtime·mstart(void)
{
#ifdef GOOS_windows
#ifdef GOARCH_386
// It is used by windows-386 only. Unfortunately, seh needs
// to be located on os stack, and mstart runs on os stack
// for both m0 and m.
SEH seh;
#endif
#endif
if(g != m->g0)
runtime·throw("bad runtime·mstart");
......
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