diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 2016-06-01 10:14:25 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 2016-06-01 10:14:25 +0000 |
| commit | 69c526f46ef3de47e7864f141caef0110fbf9401 (patch) | |
| tree | 350e7f50704ec071aad07cfd31935d82ff6112df /lib/libc/stdlib/lldiv.c | |
| parent | 3f58662dd929456a0949339d6d4a414f6eacc5b8 (diff) | |
Notes
Diffstat (limited to 'lib/libc/stdlib/lldiv.c')
| -rw-r--r-- | lib/libc/stdlib/lldiv.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/stdlib/lldiv.c b/lib/libc/stdlib/lldiv.c index b34b65e8632d..197b48f3f51e 100644 --- a/lib/libc/stdlib/lldiv.c +++ b/lib/libc/stdlib/lldiv.c @@ -37,9 +37,11 @@ lldiv(long long numer, long long denom) retval.quot = numer / denom; retval.rem = numer % denom; +#if !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L) if (numer >= 0 && retval.rem < 0) { retval.quot++; retval.rem -= denom; } +#endif return (retval); } |
