We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1c72635 commit 688d337Copy full SHA for 688d337
compat/compiler.h
@@ -6,22 +6,17 @@
6
7
#ifdef __GLIBC__
8
#include <gnu/libc-version.h>
9
+#endif
10
11
static inline void get_compiler_info(struct strbuf *info)
12
{
13
+#ifdef __GLIBC__
14
strbuf_addf(info, "glibc: %s\n", gnu_get_libc_version());
15
16
+
17
#ifdef __GNUC__
18
strbuf_addf(info, "gnuc: %d.%d\n", __GNUC__, __GNUC_MINOR__);
19
#endif
20
}
21
-#else
-
-static inline void get_compiler_info(struct strbuf *info)
-{
22
- strbuf_addstr(info, "get_compiler_info() not implemented");
23
-}
24
25
-#endif
26
27
#endif /* COMPILER_H */
0 commit comments