From c5660c7ecdb92c23cb5397a6c0b4220010eb14be Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Fri, 26 Sep 2014 00:45:07 +0200 Subject: include compiler in version print --- src/options.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/options.c') diff --git a/src/options.c b/src/options.c index 6f7a0fc..bcc1312 100644 --- a/src/options.c +++ b/src/options.c @@ -279,7 +279,13 @@ void options_clear(options_t* opt) void options_print_version() { printf("%s\n", VERSION_STRING_0); +#if defined(__clang__) + printf("%s, using CLANG %s\n", VERSION_STRING_1, __clang_version__); +#elif defined(__GNUC__) + printf("%s, using GCC %d.%d.%d\n", VERSION_STRING_1, __GNUC__, __GNUC_MINOR__, __GNUC_PATCHLEVEL__); +#else printf("%s\n", VERSION_STRING_1); +#endif const gchar *nano_str; guint major, minor, micro, nano; gst_version(&major, &minor, µ, &nano); -- cgit v1.2.3