master
 1#include "pthread_impl.h"
 2#include <threads.h>
 3
 4#if !defined(__wasilibc_unmodified_upstream) && defined(__wasm__)
 5_Thread_local struct pthread __wasilibc_pthread_self;
 6#endif
 7
 8static pthread_t __pthread_self_internal()
 9{
10	return __pthread_self();
11}
12
13weak_alias(__pthread_self_internal, pthread_self);
14weak_alias(__pthread_self_internal, thrd_current);