diff --git a/cocos2dx/platform/platform.h b/cocos2dx/platform/platform.h index af8f088e96..50ac9ccb06 100644 --- a/cocos2dx/platform/platform.h +++ b/cocos2dx/platform/platform.h @@ -25,4 +25,8 @@ THE SOFTWARE. #ifndef __PLATFORM_PLATFORM_H__ #define __PLATFORM_PLATFORM_H__ +#if defined(_UPHONE) + #include "uphone/platform_uphone.h" +#endif // _UPHONE + #endif // __PLATFORM_PLATFORM_H__ diff --git a/cocos2dx/platform/uphone/platform_uphone.h b/cocos2dx/platform/uphone/platform_uphone.h index ec1e9e553e..df072b6d1a 100644 --- a/cocos2dx/platform/uphone/platform_uphone.h +++ b/cocos2dx/platform/uphone/platform_uphone.h @@ -25,4 +25,12 @@ THE SOFTWARE. #ifndef __PLATFORM_PLATFORM_UPHONE_H__ #define __PLATFORM_PLATFORM_UPHONE_H__ +#include "Cocos2dTypes.h" + +struct timeval +{ + long tv_sec; // seconds + long tv_usec; // microSeconds +}; + #endif // __PLATFORM_PLATFORM_UPHONE_H__