mirror of
https://github.com/ptitSeb/Serious-Engine
synced 2024-11-26 04:05:53 +01:00
Define PLATFORM_PANDORA instead of PANDORA, to match other targets.
This commit is contained in:
parent
22fb22ab27
commit
91827e7d2a
|
@ -104,7 +104,7 @@ endif()
|
||||||
|
|
||||||
option(PANDORA "Compile for Pandora" FALSE)
|
option(PANDORA "Compile for Pandora" FALSE)
|
||||||
if (PANDORA)
|
if (PANDORA)
|
||||||
add_definitions(-DPANDORA=1)
|
add_definitions(-DPLATFORM_PANDORA=1)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
option(USE_TREMOR "Use Tremor instead of Vorbis" FALSE)
|
option(USE_TREMOR "Use Tremor instead of Vorbis" FALSE)
|
||||||
|
|
|
@ -40,7 +40,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
||||||
static inline __int64 ReadTSC(void)
|
static inline __int64 ReadTSC(void)
|
||||||
{
|
{
|
||||||
#if USE_GETTIMEOFDAY
|
#if USE_GETTIMEOFDAY
|
||||||
#ifdef PANDORA
|
#ifdef PLATFORM_PANDORA
|
||||||
struct timespec tp;
|
struct timespec tp;
|
||||||
clock_gettime(CLOCK_MONOTONIC, &tp);
|
clock_gettime(CLOCK_MONOTONIC, &tp);
|
||||||
return( (((__int64) tp.tv_sec) * 1000000000LL) + ((__int64) tp.tv_nsec));
|
return( (((__int64) tp.tv_sec) * 1000000000LL) + ((__int64) tp.tv_nsec));
|
||||||
|
@ -320,7 +320,7 @@ CTimer::CTimer(BOOL bInterrupt /*=TRUE*/)
|
||||||
|
|
||||||
#if USE_GETTIMEOFDAY
|
#if USE_GETTIMEOFDAY
|
||||||
// just use gettimeofday.
|
// just use gettimeofday.
|
||||||
#ifdef PANDORA
|
#ifdef PLATFORM_PANDORA
|
||||||
tm_llCPUSpeedHZ = tm_llPerformanceCounterFrequency = 1000000000LL;
|
tm_llCPUSpeedHZ = tm_llPerformanceCounterFrequency = 1000000000LL;
|
||||||
#else
|
#else
|
||||||
tm_llCPUSpeedHZ = tm_llPerformanceCounterFrequency = 1000000;
|
tm_llCPUSpeedHZ = tm_llPerformanceCounterFrequency = 1000000;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user