Open ODON1 opened 2 years ago
@ODON1 Indeed, that error came up a long time ago and was not caught by CI at the time. Changing the name of that enum entry is a breaking change and one we should investigate. This workaround had to be baked into the recently released OpenCL-SDK samples too.
Depending on the order of includes I get the following error:
I saw a mention of the same problem here [(https://bugs.webkit.org/show_bug.cgi?id=200984)]
/usr/include/X11/X.h has the following lines:
This 'None' macro is apparently still active when processing opencl.hpp and replaces some enums.
(Maybe this should be solved by X11?)
I solved it by adding "#undef None" to the head of the opencl.hpp file but that may not be the best solution