Skip to content

Commit

Permalink
Merge pull request #120 from SwareJonge/win-cc-ver-fix
Browse files Browse the repository at this point in the history
Prioritize clang and GCC in svt_av1_print_version
  • Loading branch information
BlueSwordM authored Dec 30, 2024
2 parents dbc0343 + 8bf7da2 commit f560b40
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Source/Lib/Globals/enc_handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -6118,7 +6118,11 @@ EB_API void svt_av1_print_version(void) {
SVT_INFO("-------------------------------------------\n");
SVT_INFO("SVT [version]:\tSVT-AV1-PSY Encoder Lib %s\n", SVT_AV1_CVS_VERSION);
const char *compiler =
#if defined( _MSC_VER ) && (_MSC_VER >= 1930)
#if defined(__clang__)
__VERSION__ "\t"
#elif defined(__GNUC__)
"GCC " __VERSION__ "\t"
#elif defined( _MSC_VER ) && (_MSC_VER >= 1930)
"Visual Studio 2022"
#elif defined( _MSC_VER ) && (_MSC_VER >= 1920)
"Visual Studio 2019"
Expand All @@ -6128,10 +6132,6 @@ EB_API void svt_av1_print_version(void) {
"Visual Studio 2015"
#elif defined( _MSC_VER )
"Visual Studio (old)"
#elif defined(__clang__)
__VERSION__ "\t"
#elif defined(__GNUC__)
"GCC " __VERSION__ "\t"
#else
"unknown compiler"
#endif
Expand Down

0 comments on commit f560b40

Please sign in to comment.