Only one of the TARGET_... identifiers is defined without including cdef.h, but that needed some other declarations aswell. Should not be necessary when using #if above.