Skip to content

Commit

Permalink
detect Visual Studio 2019
Browse files Browse the repository at this point in the history
  • Loading branch information
KlausT committed Jun 6, 2019
1 parent aadf843 commit c943c2f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions ccminer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2879,10 +2879,12 @@ static int msver(void)
case 1700: version = 2012; break;
case 1800: version = 2013; break;
case 1900: version = 2015; break;
default: version = _MSC_VER / 100;
default:
if(_MSC_VER < 1920)
version = 2017;
else
version = 2019;
}
if(_MSC_VER >= 1910)
version = 2017;
#else
version = 0;
#endif
Expand Down

0 comments on commit c943c2f

Please sign in to comment.