cleanup and work around visibility bug in gcc 3 that affects x86_64
[musl] / src / internal / libc.c
1 #include "libc.h"
2
3 #ifdef USE_LIBC_ACCESSOR
4 struct __libc *__libc_loc()
5 {
6         static struct __libc __libc;
7         return &__libc;
8 }
9 #else
10 struct __libc __libc ATTR_LIBC_VISIBILITY;
11 #endif