add platform judge

windows or mac ?