mirror of
https://github.com/Relintai/sdl2_frt.git
synced 2024-12-16 11:06:49 +01:00
Fixed implicit linkage to ftol2() on Windows
This commit is contained in:
parent
c302c1abb8
commit
1d8797876a
@ -266,8 +266,11 @@ SDL_trunc(double x)
|
||||
#if defined(HAVE_TRUNC)
|
||||
return trunc(x);
|
||||
#else
|
||||
/* !!! FIXME: there are more formal (correct!) ways to do this. */
|
||||
return (double) ((Sint64) x);
|
||||
if (x >= 0.0f) {
|
||||
return SDL_floor(x);
|
||||
} else {
|
||||
return SDL_ceil(x);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user