diff options
author | Renato Botelho <renato@netgate.com> | 2016-06-02 18:34:21 -0300 |
---|---|---|
committer | Renato Botelho <renato@netgate.com> | 2016-06-02 18:34:21 -0300 |
commit | 4775a2bdcd046cf79426a4cdd0dbc8f52a414ca8 (patch) | |
tree | f7ba4164f8a1690df639984ef7588d4ed6ed80cd /lib/libc/stdlib/div.c | |
parent | 58cc1dd9a16eac0125c6fce83aa28f26d7e13989 (diff) | |
parent | ada12d916d2fc4a725e9c2f0ec61f027ce65471a (diff) | |
download | FreeBSD-src-4775a2bdcd046cf79426a4cdd0dbc8f52a414ca8.zip FreeBSD-src-4775a2bdcd046cf79426a4cdd0dbc8f52a414ca8.tar.gz |
Merge remote-tracking branch 'origin/master' into devel-11
Diffstat (limited to 'lib/libc/stdlib/div.c')
-rw-r--r-- | lib/libc/stdlib/div.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/libc/stdlib/div.c b/lib/libc/stdlib/div.c index 7dfe553..0bafbe6 100644 --- a/lib/libc/stdlib/div.c +++ b/lib/libc/stdlib/div.c @@ -46,6 +46,7 @@ div(num, denom) r.quot = num / denom; r.rem = num % denom; +#if !defined(__STDC_VERSION__) || (__STDC_VERSION__ < 199901L) /* * The ANSI standard says that |r.quot| <= |n/d|, where * n/d is to be computed in infinite precision. In other @@ -73,5 +74,6 @@ div(num, denom) r.quot++; r.rem -= denom; } +#endif return (r); } |