Fix GCC warnings on Linux.

This commit is contained in:
Prcuvu
2015-10-08 12:51:28 +08:00
parent f441d3a6f7
commit d98a25797e
6 changed files with 22 additions and 14 deletions
+5 -5
View File
@@ -180,17 +180,17 @@ int64_t pos_map_queue::Search( int64_t iSourceFrame, bool *bApproximate ) const
* 3. Underflow; we'll be given a larger frame number than we know about.
*/
#if defined(WIN32)
#define LI "%I64i"
#elif defined(PRIi64)
#define LI "%" PRIi64
#define I64F "%I64i"
#elif defined(__x86_64__)
#define I64F "%li"
#else
#define LI "%lli"
#define I64F "%lli"
#endif
static RageTimer last;
if( last.PeekDeltaTime() >= 1.0f )
{
last.GetDeltaTime();
LOG->Trace( "Approximate sound time: driver frame " LI ", m_pImpl->m_Queue frame " LI ".." LI " (dist " LI "), closest position is " LI,
LOG->Trace( "Approximate sound time: driver frame " I64F ", m_pImpl->m_Queue frame " I64F ".." I64F " (dist " I64F "), closest position is " I64F,
iSourceFrame, pClosestBlock->m_iDestFrame, pClosestBlock->m_iDestFrame+pClosestBlock->m_iFrames,
iClosestPositionDist, iClosestPosition );
}