Skip to content

OCL: cleanup unused code in case of undef HAVE_OPENCL#4141

Closed
alalek wants to merge 3 commits intoopencv:masterfrom
alalek:ocl_fix_noocl_code_2
Closed

OCL: cleanup unused code in case of undef HAVE_OPENCL#4141
alalek wants to merge 3 commits intoopencv:masterfrom
alalek:ocl_fix_noocl_code_2

Conversation

@alalek
Copy link
Copy Markdown
Member

@alalek alalek commented Jun 19, 2015

WIP

Alternative to straightforward #4102 , but requires more hacks for GCC and bindings parser.

GCC doesn't export methods declared in definitions. It works with this hack on my machine:

__attribute__((used)) __attribute__ ((visibility ("default")))

It is dangerous, because may not work with old ARM/Android gcc cross-compilers and/or with clang compiler.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant