[Piglit] [PATCH 1/1] cl: declare enum counts as extern

Jan Vesely jan.vesely at rutgers.edu
Wed May 25 20:12:21 UTC 2016


The correct symbols are in libpiglitutil_cl.so

Reported-by: Jose Luis Cercós <jlcercos at gmail.com>
Signed-off-by: Jan Vesely <jan.vesely at rutgers.edu>
---
 tests/util/piglit-util-cl-enum.h | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/util/piglit-util-cl-enum.h b/tests/util/piglit-util-cl-enum.h
index e08d3c3..1791531 100644
--- a/tests/util/piglit-util-cl-enum.h
+++ b/tests/util/piglit-util-cl-enum.h
@@ -71,10 +71,10 @@ const char* piglit_cl_get_error_name(cl_int error);
 
 
 #define PIGLIT_CL_DEFINE_ENUM_PROTOTYPE(type, name)    \
-        const unsigned int piglit_##name##_num_1_0;    \
-        const unsigned int piglit_##name##_num_1_1;    \
-        const unsigned int piglit_##name##_num_1_2;    \
-        const type* piglit_##name;
+        extern const unsigned int piglit_##name##_num_1_0;    \
+        extern const unsigned int piglit_##name##_num_1_1;    \
+        extern const unsigned int piglit_##name##_num_1_2;    \
+        extern const type* piglit_##name;
 
 #define PIGLIT_CL_DEFINE_ENUM_PROTOTYPE_2(name)        \
         PIGLIT_CL_DEFINE_ENUM_PROTOTYPE(name, name)
-- 
2.5.5



More information about the Piglit mailing list