First steps

This commit is contained in:
JusicP
2020-11-19 22:37:27 +02:00
parent 6920a3bd08
commit 3434111923
1341 changed files with 883624 additions and 46746 deletions
+11 -1
View File
@@ -153,6 +153,12 @@
#define IsOSX() false
#endif
#if defined( ANDROID )
#define IsAndroid() true
#else
#define IsAndroid() false
#endif
#define IsPosix() true
#define IsPlatformOpenGL() true
#else
@@ -1160,7 +1166,11 @@ PLATFORM_INTERFACE struct tm * Plat_localtime( const time_t *timep, struct tm *
inline uint64 Plat_Rdtsc()
{
#if defined( _X360 )
#if defined(__arm__) && defined(ANDROID)
struct timespec ts;
clock_gettime(CLOCK_REALTIME, &ts);
return ts.tv_sec * 1000000000ULL + ts.tv_nsec;
#elif defined( _X360 )
return ( uint64 )__mftb32();
#elif defined( _WIN64 )
return ( uint64 )__rdtsc();