[DF-2097] add define check of platform