mirror of
https://github.com/libretro/RetroArch
synced 2025-04-03 19:20:24 +00:00
Add C99/C11 rule - use llabs if C99/C11 is availabl,e otherwise use labs
This commit is contained in:
parent
c359ae5522
commit
f70dc90729
@ -4345,7 +4345,11 @@ void video_frame_rest(video_driver_state_t *video_st,
|
|||||||
else if (frame_time < frame_time_target)
|
else if (frame_time < frame_time_target)
|
||||||
frame_time_over_count--;
|
frame_time_over_count--;
|
||||||
|
|
||||||
|
#if !defined(DJGPP) && defined(__STDC_C99__) || defined(__STDC_C11__)
|
||||||
|
if (llabs(frame_time - frame_time_target) < frame_time_target * 1.002f - frame_time_target)
|
||||||
|
#else
|
||||||
if (labs(frame_time - frame_time_target) < frame_time_target * 1.002f - frame_time_target)
|
if (labs(frame_time - frame_time_target) < frame_time_target * 1.002f - frame_time_target)
|
||||||
|
#endif
|
||||||
frame_time_near_count++;
|
frame_time_near_count++;
|
||||||
else
|
else
|
||||||
frame_time_near_count--;
|
frame_time_near_count--;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user