mirror of https://github.com/axmolengine/axmol.git
issue #2: add needed header file to platform.h
This commit is contained in:
parent
c81e408606
commit
e8be24e1bd
|
@ -25,4 +25,8 @@ THE SOFTWARE.
|
||||||
#ifndef __PLATFORM_PLATFORM_H__
|
#ifndef __PLATFORM_PLATFORM_H__
|
||||||
#define __PLATFORM_PLATFORM_H__
|
#define __PLATFORM_PLATFORM_H__
|
||||||
|
|
||||||
|
#if defined(_UPHONE)
|
||||||
|
#include "uphone/platform_uphone.h"
|
||||||
|
#endif // _UPHONE
|
||||||
|
|
||||||
#endif // __PLATFORM_PLATFORM_H__
|
#endif // __PLATFORM_PLATFORM_H__
|
||||||
|
|
|
@ -25,4 +25,12 @@ THE SOFTWARE.
|
||||||
#ifndef __PLATFORM_PLATFORM_UPHONE_H__
|
#ifndef __PLATFORM_PLATFORM_UPHONE_H__
|
||||||
#define __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__
|
#endif // __PLATFORM_PLATFORM_UPHONE_H__
|
||||||
|
|
Loading…
Reference in New Issue