projects
/
linux-2.6-microblaze.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge branch 'perf/urgent' into perf/core, to pick up fixes
[linux-2.6-microblaze.git]
/
tools
/
build
/
feature
/
test-glibc.c
1
#include <stdlib.h>
2
3
#if !defined(__UCLIBC__)
4
#include <gnu/libc-version.h>
5
#else
6
#define XSTR(s) STR(s)
7
#define STR(s) #s
8
#endif
9
10
int main(void)
11
{
12
#if !defined(__UCLIBC__)
13
const char *version = gnu_get_libc_version();
14
#else
15
const char *version = XSTR(__GLIBC__) "." XSTR(__GLIBC_MINOR__);
16
#endif
17
18
return (long)version;
19
}