summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/util/piglit-util-cl-enum.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/util/piglit-util-cl-enum.h b/tests/util/piglit-util-cl-enum.h
index 51336ce44..e08d3c376 100644
--- a/tests/util/piglit-util-cl-enum.h
+++ b/tests/util/piglit-util-cl-enum.h
@@ -25,6 +25,11 @@
#ifndef PIGLIT_UTIL_CL_ENUM_H
#define PIGLIT_UTIL_CL_ENUM_H
+#define CL_USE_DEPRECATED_OPENCL_1_0_APIS
+#define CL_USE_DEPRECATED_OPENCL_1_1_APIS
+#define CL_USE_DEPRECATED_OPENCL_1_2_APIS
+#define CL_USE_DEPRECATED_OPENCL_2_0_APIS
+
#ifdef __APPLE__
#include <OpenCL/opencl.h>
#else