fix sdk build break after macro remove