You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
245 B

#include "locale_impl.h"
#include "pthread_impl.h"
#include "libc.h"
locale_t uselocale(locale_t l)
{
pthread_t self = pthread_self();
locale_t old = self->locale;
if (l) self->locale = l;
return old;
}
weak_alias(uselocale, __uselocale);