AGS: Use C99 isnan instead of std::isnan

This commit is contained in:
Thierry Crozat 2023-06-06 09:00:36 +01:00
parent 4dcde68f4a
commit 22dae3061e

View File

@ -20,7 +20,6 @@
*/
#include "ags/lib/std/algorithm.h"
#include "ags/lib/std/math.h"
#include "ags/lib/aastr-0.1.1/aastr.h"
#include "ags/shared/core/platform.h"
#include "ags/shared/ac/common.h"
@ -1853,7 +1852,7 @@ void draw_fps(const Rect &viewport) {
char fps_buffer[60];
// Don't display fps if we don't have enough information (because loop count was just reset)
if (!std::isnan(_G(fps))) {
if (!isnan(_G(fps))) {
snprintf(fps_buffer, sizeof(fps_buffer), "FPS: %2.1f / %s", _G(fps), base_buffer);
} else {
snprintf(fps_buffer, sizeof(fps_buffer), "FPS: --.- / %s", base_buffer);