From 6c2cf0e7fd86ff3ee368e72798cca21357512ec3 Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Mon, 4 Oct 2010 08:40:57 +0000 Subject: [PATCH] Do not import OpenCL namespace if "EXPERIMENTAL" is not defined. --- Source/Examples/OpenCL/VectorAdd.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Source/Examples/OpenCL/VectorAdd.cs b/Source/Examples/OpenCL/VectorAdd.cs index 1f35c772..ef0bd215 100644 --- a/Source/Examples/OpenCL/VectorAdd.cs +++ b/Source/Examples/OpenCL/VectorAdd.cs @@ -1,11 +1,13 @@ -using System; +#if EXPERIMENTAL + +using System; using System.Collections.Generic; using System.Text; using OpenTK.Compute.CL10; namespace Examples { -#if EXPERIMENTAL + using cl_context = IntPtr; using cl_device_id = IntPtr; using cl_command_queue = IntPtr; @@ -138,5 +140,6 @@ vectorAdd(__global const float * a, } } } -#endif } + +#endif \ No newline at end of file