fixes for the GCC build

This commit is contained in:
Nikita Smith authored and Ryan Fleury committed 2026-09-10 14:28:29 -07:00
1 parent 5fe1bac74e
commit 55fbbb09d7
20 files changed
+78 -75

No files matched your search

+1 -1
View File
@@ -54,7 +54,7 @@
#if COMPILER_MSVC
# define force_inline __forceinline
#elif COMPILER_CLANG || COMPILER_GCC
# define force_inline __attribute__((always_inline))
# define force_inline inline __attribute__((always_inline))
#else
# error force_inline not defined for this compiler.
#endif
+1 -5
View File
@@ -4,11 +4,7 @@
////////////////////////////////
//~ rjf: Globals/Thread-Locals
C_LINKAGE thread_static Log *log_active;
#if !BUILD_SUPPLEMENTARY_UNIT
C_LINKAGE thread_static Log *log_active = 0;
#endif
thread_static Log *log_active;
String8 g_logs_folder;
////////////////////////////////
+1
View File
@@ -40,6 +40,7 @@ struct Log
// Globals
extern String8 g_logs_folder;
extern thread_static Log *log_active;
////////////////////////////////
//~ rjf: Log Creation/Selection
+5 -5
View File
@@ -196,7 +196,7 @@ str32_zero(void)
}
internal String8
str8_cstring(char *c)
str8_cstring(const char *c)
{
String8 result = {(U8*)c, cstring8_length((U8*)c)};
return result;
@@ -3076,7 +3076,7 @@ str8_deserial_read_sleb128(String8 string, U64 off, S64 *value_out)
////////////////////////////////
force_inline int
internal force_inline int
str8_compar(String8 a, String8 b, B32 ignore_case)
{
U64 size = Min(a.size, b.size);
@@ -3095,19 +3095,19 @@ str8_compar(String8 a, String8 b, B32 ignore_case)
return cmp;
}
force_inline int
internal force_inline int
str8_compar_ignore_case(const void *a, const void *b)
{
return str8_compar(*(String8*)a, *(String8*)b, 1);
}
force_inline int
internal force_inline int
str8_compar_case_sensitive(const void *a, const void *b)
{
return str8_compar(*(String8*)a, *(String8*)b, 0);
}
force_inline int
internal force_inline int
str8_is_before_case_sensitive(const void *a, const void *b)
{
int cmp = str8_compar_case_sensitive(a, b);
+1 -1
View File
@@ -180,7 +180,7 @@ internal String16 str16_zero(void);
internal String32 str32(U32 *str, U64 size);
internal String32 str32_range(U32 *first, U32 *one_past_last);
internal String32 str32_zero(void);
internal String8 str8_cstring(char *c);
internal String8 str8_cstring(const char *c);
internal String16 str16_cstring(U16 *c);
internal String32 str32_cstring(U32 *c);
internal String8 str8_cstring_capped(void *cstr, void *cap);
+1 -4
View File
@@ -4,10 +4,7 @@
////////////////////////////////
//~ rjf: Globals
C_LINKAGE thread_static TCTX *tctx_thread_local;
#if !BUILD_SUPPLEMENTARY_UNIT
C_LINKAGE thread_static TCTX *tctx_thread_local = 0;
#endif
thread_static TCTX *tctx_thread_local;
////////////////////////////////
//~ rjf: Thread Context Functions
+5
View File
@@ -79,6 +79,11 @@ struct TCTX
U64 *progress_target_ptr;
};
////////////////////////////////
// Globals
extern thread_static TCTX *tctx_thread_local;
////////////////////////////////
//~ rjf: Thread Context Functions