mirror of
https://github.com/Ed94/Odin.git
synced 2026-07-12 06:11:26 -07:00
Add _tls_index and _fltused for windows -no-crt
This commit is contained in:
@@ -2,6 +2,14 @@ package runtime
|
||||
|
||||
foreign import kernel32 "system:Kernel32.lib"
|
||||
|
||||
@private
|
||||
@(link_name="_tls_index")
|
||||
_tls_index: u32;
|
||||
|
||||
@private
|
||||
@(link_name="_fltused")
|
||||
_fltused: i32 = 0x9875;
|
||||
|
||||
@(link_name="memcpy")
|
||||
memcpy :: proc "c" (dst, src: rawptr, len: int) -> rawptr {
|
||||
foreign kernel32 {
|
||||
|
||||
+2
-1
@@ -1696,7 +1696,8 @@ void generate_minimum_dependency_set(Checker *c, Entity *start) {
|
||||
str_lit("memcpy"),
|
||||
str_lit("memmove"),
|
||||
str_lit("memset"),
|
||||
// str_lit("memcmp"),
|
||||
str_lit("_tls_index"),
|
||||
str_lit("_fltused"),
|
||||
};
|
||||
for (isize i = 0; i < gb_count_of(required_no_crt_entities); i++) {
|
||||
add_dependency_to_set(c, scope_lookup(c->info.runtime_package->scope, required_no_crt_entities[i]));
|
||||
|
||||
Reference in New Issue
Block a user