issue #2: add needed header file to platform.h

This commit is contained in:
Ming 2010-07-08 03:56:17 +00:00
parent c81e408606
commit e8be24e1bd
2 changed files with 12 additions and 0 deletions

View File

@ -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__

View File

@ -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__