From cab927a1b75c42572d0b04de9dd29278ffc60156 Mon Sep 17 00:00:00 2001 From: Andreas Kloeckner <inform@tiker.net> Date: Mon, 17 Sep 2018 23:33:10 -0500 Subject: [PATCH] Fix stack container macro on windows --- src/wrap_cl.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wrap_cl.hpp b/src/wrap_cl.hpp index 9fcea1f6..425bf1d6 100644 --- a/src/wrap_cl.hpp +++ b/src/wrap_cl.hpp @@ -93,7 +93,7 @@ #if defined(_WIN32) // MSVC does not understand variable-length arrays #define PYOPENCL_STACK_CONTAINER(TYPE, NAME, COUNT) std::vector<TYPE> NAME(COUNT) -#define PYOPENCL_STACK_CONTAINER_GET_PTR(NAME) (name.size() ? name.data() : nullptr) +#define PYOPENCL_STACK_CONTAINER_GET_PTR(NAME) (NAME.size() ? NAME.data() : nullptr) #else // gcc et al complain about stripping attributes in template arguments #define PYOPENCL_STACK_CONTAINER(TYPE, NAME, COUNT) TYPE NAME[COUNT] -- GitLab