X-Git-Url: https://git.syn-net.org/debian/?p=anytun.git;a=blobdiff_plain;f=src%2Foptions.cpp;h=038e7b79a21efe3fa6f615c7614f83a59a6ab54f;hp=284e9e8d7f491347cfef687ae5073107b9cc21a4;hb=91d2dadab8997ae23442f77dd28db9fa3aee1e7c;hpb=65944fb7a518dc659bacaf80cf235a0352fc6a7e diff --git a/src/options.cpp b/src/options.cpp index 284e9e8..038e7b7 100644 --- a/src/options.cpp +++ b/src/options.cpp @@ -559,7 +559,16 @@ void Options::printVersion() std::cout << "anytun"; #endif std::cout << VERSION_STRING_0 << std::endl; + +#if defined(__clang__) + std::cout << VERSION_STRING_1 << ", using CLANG " << __clang_version__ << std::endl; +#elif defined(__GNUC__) + std::cout << VERSION_STRING_1 << ", using GCC " << __GNUC__ << '.' << __GNUC_MINOR__ + << '.' << __GNUC_PATCHLEVEL__ << std::endl; +#else std::cout << VERSION_STRING_1 << std::endl; +#endif + } void Options::printUsage()