mirror of
https://github.com/nillerusr/source-engine.git
synced 2026-09-12 13:07:41 +00:00
First steps
This commit is contained in:
+11
-1
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user