Skip to content

Commit 688d337

Browse files
committed
fixup compat compiler info
1 parent 1c72635 commit 688d337

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

compat/compiler.h

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,22 +6,17 @@
66

77
#ifdef __GLIBC__
88
#include <gnu/libc-version.h>
9+
#endif
910

1011
static inline void get_compiler_info(struct strbuf *info)
1112
{
13+
#ifdef __GLIBC__
1214
strbuf_addf(info, "glibc: %s\n", gnu_get_libc_version());
15+
#endif
16+
1317
#ifdef __GNUC__
1418
strbuf_addf(info, "gnuc: %d.%d\n", __GNUC__, __GNUC_MINOR__);
1519
#endif
1620
}
1721

18-
#else
19-
20-
static inline void get_compiler_info(struct strbuf *info)
21-
{
22-
strbuf_addstr(info, "get_compiler_info() not implemented");
23-
}
24-
25-
#endif
26-
2722
#endif /* COMPILER_H */

0 commit comments

Comments
 (0)