Define PLATFORM_PANDORA instead of PANDORA, to match other targets.

This commit is contained in:
Ryan C. Gordon 2016-04-06 13:40:08 -04:00
parent 22fb22ab27
commit 91827e7d2a
2 changed files with 3 additions and 3 deletions

View File

@ -104,7 +104,7 @@ endif()
option(PANDORA "Compile for Pandora" FALSE)
if (PANDORA)
add_definitions(-DPANDORA=1)
add_definitions(-DPLATFORM_PANDORA=1)
endif()
option(USE_TREMOR "Use Tremor instead of Vorbis" FALSE)

View File

@ -40,7 +40,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
static inline __int64 ReadTSC(void)
{
#if USE_GETTIMEOFDAY
#ifdef PANDORA
#ifdef PLATFORM_PANDORA
struct timespec tp;
clock_gettime(CLOCK_MONOTONIC, &tp);
return( (((__int64) tp.tv_sec) * 1000000000LL) + ((__int64) tp.tv_nsec));
@ -320,7 +320,7 @@ CTimer::CTimer(BOOL bInterrupt /*=TRUE*/)
#if USE_GETTIMEOFDAY
// just use gettimeofday.
#ifdef PANDORA
#ifdef PLATFORM_PANDORA
tm_llCPUSpeedHZ = tm_llPerformanceCounterFrequency = 1000000000LL;
#else
tm_llCPUSpeedHZ = tm_llPerformanceCounterFrequency = 1000000;