mirror of https://git.musl-libc.org/git/musl
Browse Source
eliminate gratuitous glue function for reporting the version, which was probably leftover from the old dynamic linker design which lacked a clear barrier for when/how it could access global data. put the declaration for the data object that replaces it in libc.h where it can be type checked.master
3 changed files with 4 additions and 9 deletions
@ -1,9 +1,4 @@ |
|||||
#include "version.h" |
#include "version.h" |
||||
#include "libc.h" |
#include "libc.h" |
||||
|
|
||||
static const char version[] = VERSION; |
const char __libc_version[] = VERSION; |
||||
|
|
||||
hidden const char *__libc_get_version() |
|
||||
{ |
|
||||
return version; |
|
||||
} |
|
||||
|
|||||
Loading…
Reference in new issue