From f05d134aa702e656fe83f796e4966092a93f25cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Fri, 10 Feb 2023 11:20:27 +0800 Subject: [PATCH] OpenCL: tidy --- src/modules/opencl.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/modules/opencl.c b/src/modules/opencl.c index 60bcd2058..8f1f69cd1 100644 --- a/src/modules/opencl.c +++ b/src/modules/opencl.c @@ -11,10 +11,10 @@ #include #define CL_TARGET_OPENCL_VERSION 100 -#ifdef __APPLE__ - #include -#else +#ifdef FF_HAVE_OPENCL #include +#else + #include #endif typedef struct OpenCLData @@ -99,7 +99,7 @@ static const char* printOpenCL(FFinstance* instance) return error; } -#elif __APPLE__ // FF_HAVE_OPENCL +#elif defined(__APPLE__) // FF_HAVE_OPENCL static const char* printOpenCL(FFinstance* instance) { @@ -111,7 +111,7 @@ static const char* printOpenCL(FFinstance* instance) return openCLHandleData(instance, &data); } -#endif // __APPLE__ +#endif // FF_HAVE_OPENCL void ffPrintOpenCL(FFinstance* instance) {