From c0ae9d671b3de81d09c3d2ad489eabcb00975e04 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branimir=20Karad=C5=BEi=C4=87?= Date: Wed, 30 Sep 2015 14:43:02 -0700 Subject: [PATCH] Fixed asmjs build. --- src/bgfx.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/bgfx.cpp b/src/bgfx.cpp index cab1790b..1158a364 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -200,7 +200,7 @@ namespace bgfx Caps g_caps; -#if !defined(BX_THREAD_LOCAL) +#if BGFX_CONFIG_MULTITHREADED && !defined(BX_THREAD_LOCAL) class ThreadData { BX_CLASS(ThreadData @@ -240,6 +240,8 @@ namespace bgfx }; static ThreadData s_threadIndex(0); +#elif !BGFX_CONFIG_MULTITHREADED + static uint32_t s_threadIndex(0); #else static BX_THREAD_LOCAL uint32_t s_threadIndex(0); #endif