oc: add #ifdefs to related code