Add MinGW compilation hack. I hope this compiles on other systems.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user