Skip to content

Commit 5466c27

Browse files
author
Paul Gofman
committed
opencl: HACK: Build a stub dll if Unix headers are missing.
CW-Bug-Id: #25276
1 parent 4ce8193 commit 5466c27

File tree

4 files changed

+417
-3
lines changed

4 files changed

+417
-3
lines changed

configure.ac

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,9 +1428,6 @@ if test "$ac_cv_header_CL_cl_h" = "yes"
14281428
then
14291429
AC_CHECK_LIB(OpenCL,clGetPlatformInfo,[AC_SUBST(OPENCL_LIBS,["-lOpenCL"])])
14301430
fi
1431-
WINE_NOTICE_WITH(opencl,[test "x$ac_cv_lib_OpenCL_clGetPlatformInfo" != xyes],
1432-
[OpenCL ${notice_platform}development files not found, OpenCL won't be supported.],
1433-
[enable_opencl])
14341431

14351432
dnl **** Check for libpcap ****
14361433
if test "$ac_cv_header_pcap_pcap_h" = "yes"

dlls/opencl/unix_private.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,12 @@
3838
#define CL_USE_DEPRECATED_OPENCL_2_0_APIS
3939
#define CL_TARGET_OPENCL_VERSION 220
4040
#include <CL/cl.h>
41+
#define HAVE_OPENCL
4142
#elif defined(HAVE_OPENCL_OPENCL_H)
4243
#include <OpenCL/opencl.h>
44+
#define HAVE_OPENCL
45+
#else
46+
#include "opencl_types.h"
4347
#endif
4448

4549
#include "unixlib.h"

0 commit comments

Comments
 (0)