repo.or.cz
/
linux
/
fpc-iii.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
locking/lockdep: Fix print_collision() unused warning
[linux/fpc-iii.git]
/
tools
/
build
/
feature
/
test-glibc.c
blob
9367f7586676b850d43410bfc0cb75a4c88816c6
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
}