From e8be24e1bd3023830db511a34466503d8407213f Mon Sep 17 00:00:00 2001 From: Ming Date: Thu, 8 Jul 2010 03:56:17 +0000 Subject: [PATCH] issue #2: add needed header file to platform.h --- cocos2dx/platform/platform.h | 4 ++++ cocos2dx/platform/uphone/platform_uphone.h | 8 ++++++++ 2 files changed, 12 insertions(+) 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__