4 #include "git-compat-util.h"
8 #include <gnu/libc-version.h>
11 static inline void get_compiler_info(struct strbuf
*info
)
15 strbuf_addf(info
, "clang: %s\n", __clang_version__
);
16 #elif defined(__GNUC__)
17 strbuf_addf(info
, "gnuc: %d.%d\n", __GNUC__
, __GNUC_MINOR__
);
21 strbuf_addf(info
, "MSVC version: %02d.%02d.%05d\n",
22 _MSC_VER
/ 100, _MSC_VER
% 100, _MSC_FULL_VER
% 100000);
26 strbuf_addstr(info
, _("no compiler information available\n"));
29 static inline void get_libc_info(struct strbuf
*info
)
34 strbuf_addf(info
, "glibc: %s\n", gnu_get_libc_version());
38 strbuf_addstr(info
, _("no libc information available\n"));
41 #endif /* COMPILER_H */