diff --git a/api/boinc_opencl.cpp b/api/boinc_opencl.cpp index 9fe7381b10..63713c65fe 100644 --- a/api/boinc_opencl.cpp +++ b/api/boinc_opencl.cpp @@ -30,8 +30,11 @@ #include #include "error_numbers.h" -#include "boinc_api.h" #include "coproc.h" +#include "str_replace.h" + +#include "boinc_api.h" + #include "boinc_opencl.h" // returns an OpenCL error num or zero @@ -72,10 +75,9 @@ int boinc_get_opencl_ids_aux( strcpy(vendor, GPU_TYPE_ATI); } - if (strcasestr(vendor, "nvidia")) - { + if (strcasestr(vendor, "nvidia")) { strcpy(vendor, GPU_TYPE_NVIDIA); - } + } if (!strcmp(vendor, type)) { *device = device_id; *platform = platforms[platform_index]; diff --git a/api/boinc_opencl.h b/api/boinc_opencl.h index ecd6c323fe..08bbd177f9 100644 --- a/api/boinc_opencl.h +++ b/api/boinc_opencl.h @@ -23,4 +23,6 @@ // NOTE: Compile and link this function with your application; // it is not included in the standard BOINC libraries. +#include "cl_boinc.h" + int boinc_get_opencl_ids(cl_device_id*, cl_platform_id*); diff --git a/checkin_notes b/checkin_notes index c47f2a3c8d..9f21f88564 100644 --- a/checkin_notes +++ b/checkin_notes @@ -3754,3 +3754,9 @@ David 9 May 2012 - C++ code: use MAXPATHLEN for char arrays that hold paths (many .cpp files) + +David 9 May 2012 + - compile fix + + api/ + boinc_opencl.cpp,h