From 30cb9950f9f04f429f871258664df15e082ced15 Mon Sep 17 00:00:00 2001 From: Ben Anderson Date: Sun, 26 Jun 2005 03:48:46 +0000 Subject: [PATCH] Add MinGW compilation hack. I hope this compiles on other systems. --- stepmania/src/RageSoundPosMap.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/stepmania/src/RageSoundPosMap.cpp b/stepmania/src/RageSoundPosMap.cpp index cb8cd9ba13..8330a91b20 100644 --- a/stepmania/src/RageSoundPosMap.cpp +++ b/stepmania/src/RageSoundPosMap.cpp @@ -78,7 +78,8 @@ int64_t pos_map_queue::Search( int64_t frame, bool *approximate ) const } /* See if the current position is close to the beginning of this block. */ - int64_t dist = llabs( m_Queue[i].frameno - frame ); + // HACK: MinGW compile breaks without :: in front + int64_t dist = ::llabs( m_Queue[i].frameno - frame ); if( dist < closest_position_dist ) { closest_position_dist = dist; @@ -87,7 +88,8 @@ int64_t pos_map_queue::Search( int64_t frame, bool *approximate ) const } /* See if the current position is close to the end of this block. */ - dist = llabs( m_Queue[i].frameno + m_Queue[i].frames - frame ); + // HACK: MinGW compile breaks without :: in front + dist = ::llabs( m_Queue[i].frameno + m_Queue[i].frames - frame ); if( dist < closest_position_dist ) { closest_position_dist = dist;