Update platform.cpp