#include "platform/CCPlatformConfig.h" was missing…
#include "platform/CCPlatformConfig.h"
Yeah include it