summaryrefslogtreecommitdiff
path: root/boost/compute/memory_object.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/compute/memory_object.hpp')
-rw-r--r--boost/compute/memory_object.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/boost/compute/memory_object.hpp b/boost/compute/memory_object.hpp
index 14c4cf4c7e..75c8738f8f 100644
--- a/boost/compute/memory_object.hpp
+++ b/boost/compute/memory_object.hpp
@@ -38,7 +38,7 @@ public:
use_host_ptr = CL_MEM_USE_HOST_PTR,
alloc_host_ptr = CL_MEM_ALLOC_HOST_PTR,
copy_host_ptr = CL_MEM_COPY_HOST_PTR
- #ifdef CL_VERSION_1_2
+ #ifdef BOOST_COMPUTE_CL_VERSION_1_2
,
host_write_only = CL_MEM_HOST_WRITE_ONLY,
host_read_only = CL_MEM_HOST_READ_ONLY,
@@ -105,7 +105,7 @@ public:
return detail::get_object_info<T>(clGetMemObjectInfo, m_mem, info);
}
- #if defined(CL_VERSION_1_1) || defined(BOOST_COMPUTE_DOXYGEN_INVOKED)
+ #if defined(BOOST_COMPUTE_CL_VERSION_1_1) || defined(BOOST_COMPUTE_DOXYGEN_INVOKED)
/// Registers a function to be called when the memory object is deleted
/// and its resources freed.
///
@@ -137,7 +137,7 @@ public:
new boost::function<void()>(callback)
);
}
- #endif // CL_VERSION_1_1
+ #endif // BOOST_COMPUTE_CL_VERSION_1_1
/// Returns \c true if the memory object is the same as \p other.
bool operator==(const memory_object &other) const
@@ -152,7 +152,7 @@ public:
}
private:
- #ifdef CL_VERSION_1_1
+ #ifdef BOOST_COMPUTE_CL_VERSION_1_1
/// \internal_
static void BOOST_COMPUTE_CL_CALLBACK
destructor_callback_invoker(cl_mem, void *user_data)
@@ -164,7 +164,7 @@ private:
delete callback;
}
- #endif // CL_VERSION_1_1
+ #endif // BOOST_COMPUTE_CL_VERSION_1_1
protected:
/// \internal_