aboutsummaryrefslogtreecommitdiff
path: root/base/runtime/core_builtin.odin
diff options
context:
space:
mode:
Diffstat (limited to 'base/runtime/core_builtin.odin')
-rw-r--r--base/runtime/core_builtin.odin7
1 files changed, 6 insertions, 1 deletions
diff --git a/base/runtime/core_builtin.odin b/base/runtime/core_builtin.odin
index 3a51d71fb..33b600c3e 100644
--- a/base/runtime/core_builtin.odin
+++ b/base/runtime/core_builtin.odin
@@ -54,7 +54,12 @@ container_of :: #force_inline proc "contextless" (ptr: $P/^$Field_Type, $T: type
when !NO_DEFAULT_TEMP_ALLOCATOR {
- @thread_local global_default_temp_allocator_data: Default_Temp_Allocator
+ when ODIN_ARCH == .i386 && ODIN_OS == .Windows {
+ // Thread-local storage is problematic on Windows i386
+ global_default_temp_allocator_data: Default_Temp_Allocator
+ } else {
+ @thread_local global_default_temp_allocator_data: Default_Temp_Allocator
+ }
}
@(builtin, disabled=NO_DEFAULT_TEMP_ALLOCATOR)