kconfig: add unexpected data itself to warning
[deliverable/linux.git] / tools / build / feature / test-glibc.c
CommitLineData
f151f53a
PG
1#include <stdlib.h>
2
3#if !defined(__UCLIBC__)
e12762cf 4#include <gnu/libc-version.h>
f151f53a
PG
5#else
6#define XSTR(s) STR(s)
7#define STR(s) #s
8#endif
e12762cf
IM
9
10int main(void)
11{
f151f53a 12#if !defined(__UCLIBC__)
e12762cf 13 const char *version = gnu_get_libc_version();
f151f53a
PG
14#else
15 const char *version = XSTR(__GLIBC__) "." XSTR(__GLIBC_MINOR__);
16#endif
20c99e82 17
e12762cf
IM
18 return (long)version;
19}
This page took 0.137742 seconds and 5 git commands to generate.