[libclc] 150/291: Introduce CLC_VERSION macros v2
Andreas Beckmann
anbe at moszumanska.debian.org
Tue Sep 8 10:53:43 UTC 2015
This is an automated email from the git hooks/post-receive script.
anbe pushed a commit to branch master
in repository libclc.
commit e06ebb8c7d2750f08b1bfb4808ec809e4d59b5c2
Author: Jeroen Ketema <j.ketema at imperial.ac.uk>
Date: Tue Jun 24 09:46:52 2014 +0000
Introduce CLC_VERSION macros v2
Add these out-of-order in clc.h so we can use these in other headers.
v2: Take into account the lack of a definition in OpenCL 1.0
Reviewed-by: Tom Stellard <tom at stellard.net>
git-svn-id: https://llvm.org/svn/llvm-project/libclc/trunk@211578 91177308-0d34-0410-b5e6-96231b3b80d8
---
generic/include/clc/clc.h | 3 +++
generic/include/clc/clcversion.h | 8 ++++++++
2 files changed, 11 insertions(+)
diff --git a/generic/include/clc/clc.h b/generic/include/clc/clc.h
index c7c8dfb..e93a8c0 100644
--- a/generic/include/clc/clc.h
+++ b/generic/include/clc/clc.h
@@ -11,6 +11,9 @@
/* Function Attributes */
#include <clc/clcfunc.h>
+/* 6.9 Preprocessor Directives and Macros */
+#include <clc/clcversion.h>
+
/* 6.1 Supported Data Types */
#include <clc/clctypes.h>
diff --git a/generic/include/clc/clcversion.h b/generic/include/clc/clcversion.h
new file mode 100644
index 0000000..57c989e
--- /dev/null
+++ b/generic/include/clc/clcversion.h
@@ -0,0 +1,8 @@
+#if __OPENCL_VERSION__ >= 110
+#define CLC_VERSION_1_0 100
+#define CLC_VERSION_1_1 110
+#endif
+
+#if __OPENCL_VERSION__ >= 120
+#define CLC_VERSION_1_2 120
+#endif
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/libclc.git
More information about the Pkg-opencl-commits
mailing list