Khronos Public Bugzilla
Bug 746 - Feedback on OpenCL C++ bindings
Feedback on OpenCL C++ bindings
Status: RESOLVED FIXED
Product: OpenCL
Classification: Unclassified
Component: Header Files
1.2
Macintosh Mac OS
: P3 normal
: ---
Assigned To: Benedict Gaster
OpenCL Working Group
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-10-22 03:13 PDT by curdeius
Modified: 2013-10-31 02:36 PDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description curdeius 2012-10-22 03:13:14 PDT
Line 2381 of file cl.hpp (version 1.2.1, rev. 15 OpenCL 1.2) contains the following:
    #if !defined(__APPLE__) || !defined(__MACOS)

It was supposedly meant to be a negation of:
    #if defined(__APPLE__) || defined(__MACOS)

So, the result should be:
    #if !defined(__APPLE__) && !defined(__MACOS)
(logical AND instead of OR).

Current version works properly if both __APPLE__ and __MACOS macros are defined.
If, in the future releases of MacOS, this changes and, e.g., __MACOS is not defined, then the current version will not work properly.
Comment 1 Bruce Merry 2013-10-31 02:36:37 PDT
I've fixed this in the Khronos-internal version. It will go out with the next cl.hpp release.