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
Merge tag 'block-5.11-2021-01-16' of git://git.kernel.dk/linux-block
[linux/fpc-iii.git]
/
tools
/
build
/
feature
/
test-glibc.c
blob
9ab8e90e7b88afde3397cfa00582fc17a2e102ff
1
// SPDX-License-Identifier: GPL-2.0
2
#include <stdlib.h>
3
4
#if !defined(__UCLIBC__)
5
#include <gnu/libc-version.h>
6
#else
7
#define XSTR(s) STR(s)
8
#define STR(s) #s
9
#endif
10
11
int
main
(
void
)
12
{
13
#if !defined(__UCLIBC__)
14
const char
*
version
=
gnu_get_libc_version
();
15
#else
16
const char
*
version
=
XSTR
(
__GLIBC__
)
"."
XSTR
(
__GLIBC_MINOR__
);
17
#endif
18
19
return
(
long
)
version
;
20
}