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.
20 lines
361 B
20 lines
361 B
// SPDX-License-Identifier: GPL-2.0
|
|
#include <stdlib.h>
|
|
|
|
#if !defined(__UCLIBC__)
|
|
#include <gnu/libc-version.h>
|
|
#else
|
|
#define XSTR(s) STR(s)
|
|
#define STR(s) #s
|
|
#endif
|
|
|
|
int main(void)
|
|
{
|
|
#if !defined(__UCLIBC__)
|
|
const char *version = gnu_get_libc_version();
|
|
#else
|
|
const char *version = XSTR(__GLIBC__) "." XSTR(__GLIBC_MINOR__);
|
|
#endif
|
|
|
|
return (long)version;
|
|
}
|
|
|