Add MinGW compilation hack. I hope this compiles on other systems.

This commit is contained in:
Ben Anderson
2005-06-26 03:48:46 +00:00
parent b4d007e6d6
commit 30cb9950f9
+4 -2
View File
@@ -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;