aboutsummaryrefslogtreecommitdiffstats
path: root/src/floatfns.c
diff options
context:
space:
mode:
authorEli Zaretskii2013-11-18 18:45:48 +0200
committerEli Zaretskii2013-11-18 18:45:48 +0200
commit18b35e2c7a3ff95fb4a07e58c3f57c70c65c0701 (patch)
tree7a837a755a7c22d3258408cb384d01479ad88232 /src/floatfns.c
parentdf87c56cdf6c8c13e8760bdc409e2eb0fda55b0b (diff)
parent37c790b38599cc80a16c6a76152abbf8160fe2a1 (diff)
downloademacs-18b35e2c7a3ff95fb4a07e58c3f57c70c65c0701.tar.gz
emacs-18b35e2c7a3ff95fb4a07e58c3f57c70c65c0701.zip
Merge from mainline.
Diffstat (limited to 'src/floatfns.c')
-rw-r--r--src/floatfns.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/floatfns.c b/src/floatfns.c
index f3d0936f888..9f0bab2a452 100644
--- a/src/floatfns.c
+++ b/src/floatfns.c
@@ -46,12 +46,13 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */
46 46
47#include <math.h> 47#include <math.h>
48 48
49#ifndef isfinite 49/* 'isfinite' and 'isnan' cause build failures on Solaris 10 with the
50# define isfinite(x) ((x) - (x) == 0) 50 bundled GCC in c99 mode. Work around the bugs with simple
51#endif 51 implementations that are good enough. */
52#ifndef isnan 52#undef isfinite
53# define isnan(x) ((x) != (x)) 53#define isfinite(x) ((x) - (x) == 0)
54#endif 54#undef isnan
55#define isnan(x) ((x) != (x))
55 56
56/* Check that X is a floating point number. */ 57/* Check that X is a floating point number. */
57 58