client: strcasestr does exist on Windows in lib/str_replace.cpp, but I just needed to #include "str_replace.h". This is preferable because it handles INTEL as well as Intel and intel

This commit is contained in:
Charlie Fenton 2012-12-05 16:31:16 -08:00 committed by Oliver Bock
parent 2f67ee08ce
commit f3c11f5831
2 changed files with 10 additions and 3 deletions

View File

@ -7310,3 +7310,11 @@ Rom 5 Dec 2012
client/
gpu_opencl.cpp
Charlie 5 Dec 2012
- client: strcasestr does exist on Windows in lib/str_replace.cpp,
but I just needed to #include "str_replace.h". This is
preferable because it handles INTEL as well as Intel and intel.
client/
gpu_opencl.cpp

View File

@ -37,6 +37,7 @@ using std::string;
#include "coproc.h"
#include "util.h"
#include "str_replace.h"
#include "client_msgs.h"
#include "gpu_detect.h"
@ -318,9 +319,7 @@ void COPROCS::get_opencl(
}
//////////// INTEL GPU //////////////
if ((strstr(prop.vendor, "intel")) ||
(strstr(prop.vendor, "Intel"))
) {
if (strcasestr(prop.vendor, "intel")) {
cl_device_type device_type;
ciErrNum = (*__clGetDeviceInfo)(prop.device_id, CL_DEVICE_TYPE,