Update platform.h to provide #define for snprintf for Windows