Skip to content

Commit

Permalink
Fix use of undefined macro USE_DEVICE_SELECTION
Browse files Browse the repository at this point in the history
This fixes compiler warnings.

Signed-off-by: Stefan Weil <[email protected]>
stweil committed Oct 20, 2018
1 parent 4869406 commit e232114
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/api/baseapi.cpp
Original file line number Diff line number Diff line change
@@ -226,13 +226,13 @@ const char* TessBaseAPI::Version() {
* otherwise *device=nullptr and returns 0.
*/
#ifdef USE_OPENCL
#if USE_DEVICE_SELECTION
#ifdef USE_DEVICE_SELECTION
#include "opencl_device_selection.h"
#endif
#endif
size_t TessBaseAPI::getOpenCLDevice(void **data) {
#ifdef USE_OPENCL
#if USE_DEVICE_SELECTION
#ifdef USE_DEVICE_SELECTION
ds_device device = OpenclDevice::getDeviceSelection();
if (device.type == DS_DEVICE_OPENCL_DEVICE) {
*data = new cl_device_id;

0 comments on commit e232114

Please sign in to comment.