Closed EvanKrall closed 8 years ago
Thats interesting. I don't think its worth trying to figure this out this with special compiler flags. A simple rename feels like the right idea. I probably just picked __block with the underscores in the first place to avoid an accidental clash. Oh well :-)
My compiler seems to have a __block defined in some built-in headers, which breaks compilation of the templated wrapper code produced by the gr-pothos build process:
I'm pretty sure this is an Objective-C++ thing.
This patch simply renames the variable used in the template to avoid the conflict. Maybe there's a better way, like disabling Objective C++ support in the build, but I'm not familiar enough with CMake to make that patch.