From e23211408976ff15fd2b26b73a975ac59586c33a Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sat, 20 Oct 2018 13:58:12 +0200 Subject: [PATCH] Fix use of undefined macro USE_DEVICE_SELECTION This fixes compiler warnings. Signed-off-by: Stefan Weil --- src/api/baseapi.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/api/baseapi.cpp b/src/api/baseapi.cpp index b26aaed6b2..38b9d2ef03 100644 --- a/src/api/baseapi.cpp +++ b/src/api/baseapi.cpp @@ -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;