gaurd r4 related functions with #ifdef

2 jobs for svgx-8618 in 4 minutes and 37 seconds (queued for 1 second)