summaryrefslogtreecommitdiff
path: root/libc/src/reent.c
blob: 17de11d22816ca45847fc8f8bf3b6be70e168c0e (plain)
1
2
3
4
5
6
7
8
#include "reent.h"

static struct _reent main_thread;
struct _reent * _impure_ptr = &main_thread;

__attribute__((constructor)) static void init_main_thread() {
    _REENT_INIT_PTR(_impure_ptr);
}