Ok - I added a define in cvdef.h. There is also another issue there and that it tries to pull in cstdint for clang (when including cvdef in other projects - not the actual opencv build). This fails as cstdint is not part of clang unless c++11/libc++ are defined