Khronos Public Bugzilla
Bug 746 - Feedback on OpenCL C++ bindings
Summary: Feedback on OpenCL C++ bindings
Alias: None
Product: OpenCL
Classification: Unclassified
Component: Header Files (show other bugs)
Version: 1.2
Hardware: Macintosh Mac OS
: P3 normal
Target Milestone: ---
Assignee: Benedict Gaster
QA Contact: OpenCL Working Group
Depends on:
Reported: 2012-10-22 03:13 PDT by curdeius
Modified: 2013-10-31 02:36 PDT (History)
3 users (show)

See Also:


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.