mirror of
https://git.proxmox.com/git/wasi-libc
synced 2025-08-03 06:08:52 +00:00
make __get_tp()
a static function (#327)
I'm not sure if the function really has to be exported. If so, we should probably move it to a separate compilation unit, otherwise it will be defined multiple times (e.g. in `strerror.o` and `__lctrans.o`) causing linker errors. However, I don't see a reason (at least for now) to export this function, therefore making it static in this PR.
This commit is contained in:
parent
c40403f9b0
commit
05b3b876e6
@ -79,7 +79,6 @@ __fwritable
|
||||
__fwritex
|
||||
__fwriting
|
||||
__get_locale
|
||||
__get_tp
|
||||
__getdelim
|
||||
__getentropy
|
||||
__getopt_msg
|
||||
|
@ -1,4 +1,4 @@
|
||||
uintptr_t __get_tp(void) {
|
||||
static inline uintptr_t __get_tp(void) {
|
||||
#if _REENTRANT
|
||||
int val;
|
||||
__asm__("global.get __wasilibc_pthread_self\n"
|
||||
|
Loading…
Reference in New Issue
Block a user