#if (CC_TARGET_PLATFORM == CC_PLATFORM_WIN32) #define usleep(t) Sleep(t) #else #include <unistd.h> #define usleep(t) usleep(t) #endif
cocos2d-x 跨平台usleep方法
原文:http://www.cnblogs.com/chuanwei-zhang/p/3930736.html