Use common head file "platform.h".

Signed-off-by: cctsao1008 <chiacheng.tsao@gmail.com>