diff options
author | Christian Pointner <equinox@anytun.org> | 2014-09-27 16:00:26 +0000 |
---|---|---|
committer | Christian Pointner <equinox@anytun.org> | 2014-09-27 16:00:26 +0000 |
commit | 5141ee3ea1ab18500521d88b387f5fd6015d5551 (patch) | |
tree | 896483fd166788c810da623968daa07cc16a32c9 | |
parent | fixed missing AI_ADDRCONFIG on some platforms (diff) |
improved version output
-rw-r--r-- | src/options.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/options.c b/src/options.c index df32b1b..c3038bb 100644 --- a/src/options.c +++ b/src/options.c @@ -481,7 +481,13 @@ void options_print_usage() 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 } void options_print(options_t* opt) |