mirror of
https://github.com/libretro/bsnes-libretro.git
synced 2024-11-27 02:50:32 +00:00
ec18efcb04
git-subtree-dir: bsnes/gb git-subtree-mainline:844e23d0f4
git-subtree-split:919a88ec23
9 lines
217 B
C
Executable File
9 lines
217 B
C
Executable File
#pragma once
|
|
#include_next <math.h>
|
|
#ifndef __MINGW32__
|
|
/* "Old" (Pre-2015) Windows headers/libc don't have round. */
|
|
static inline double round(double f)
|
|
{
|
|
return f >= 0? (int)(f + 0.5) : (int)(f - 0.5);
|
|
}
|
|
#endif |