diff --git a/libclc/generic/include/clc/clc.h b/libclc/generic/include/clc/clc.h index c7c8dfbe1783..e93a8c0ada41 100644 --- a/libclc/generic/include/clc/clc.h +++ b/libclc/generic/include/clc/clc.h @@ -11,6 +11,9 @@ /* Function Attributes */ #include +/* 6.9 Preprocessor Directives and Macros */ +#include + /* 6.1 Supported Data Types */ #include diff --git a/libclc/generic/include/clc/clcversion.h b/libclc/generic/include/clc/clcversion.h new file mode 100644 index 000000000000..57c989e3b713 --- /dev/null +++ b/libclc/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