use static to avoid multiple instance
diff --git a/xbyak/xbyak.h b/xbyak/xbyak.h
index fdf9e91..e7ed466 100644
--- a/xbyak/xbyak.h
+++ b/xbyak/xbyak.h
@@ -258,7 +258,7 @@
 #ifdef XBYAK_NOEXCEPTION
 namespace local {
 
-XBYAK_TLS int l_err = 0;
+static XBYAK_TLS int l_err = 0;
 inline void SetError(int err) { if (err) l_err = err; } // keep the first err code
 
 } // local