client: fix compile break on Mac

svn path=/trunk/boinc/; revision=17276
This commit is contained in:
Charlie Fenton 2009-02-17 01:51:56 +00:00
parent 4d1544e579
commit c8ad5b1def
2 changed files with 22 additions and 12 deletions

View File

@ -1618,3 +1618,9 @@ David 16 Feb 2009
coproc.cpp,h
win_build/
libboinc.vcproj
Charlie 13 Feb 2009
- client: fix compile break on Mac.
lib/
coproc.cpp

View File

@ -208,7 +208,11 @@ string COPROC_CUDA::get(COPROCS& coprocs) {
(*__cudaGetDeviceProperties)(&cc.prop, i);
if (cc.prop.major <= 0) continue; // major == 0 means emulation
if (cc.prop.major > 100) continue; // e.g. 9999 is an error
#ifdef _WIN32
cc.drvVersion = Version.drvVersion;
#else
cc.drvVersion = 0;
#endif
cc.description(buf);
if (real_count) {