add define in platform.h