Skip to content

Commit e232114

Browse files
committed
Fix use of undefined macro USE_DEVICE_SELECTION
This fixes compiler warnings. Signed-off-by: Stefan Weil <[email protected]>
1 parent 4869406 commit e232114

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/baseapi.cpp

+2-2
Original file line numberDiff line numberDiff line change
@@ -226,13 +226,13 @@ const char* TessBaseAPI::Version() {
226226
* otherwise *device=nullptr and returns 0.
227227
*/
228228
#ifdef USE_OPENCL
229-
#if USE_DEVICE_SELECTION
229+
#ifdef USE_DEVICE_SELECTION
230230
#include "opencl_device_selection.h"
231231
#endif
232232
#endif
233233
size_t TessBaseAPI::getOpenCLDevice(void **data) {
234234
#ifdef USE_OPENCL
235-
#if USE_DEVICE_SELECTION
235+
#ifdef USE_DEVICE_SELECTION
236236
ds_device device = OpenclDevice::getDeviceSelection();
237237
if (device.type == DS_DEVICE_OPENCL_DEVICE) {
238238
*data = new cl_device_id;

0 commit comments

Comments
 (0)