summaryrefslogtreecommitdiffstats
path: root/missing.h
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-01-01 06:34:48 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-01-01 06:34:48 +0000
commitd994012a0ad64abf7ba3e7d7fe71f6528f2b0fa3 (patch)
tree89580a316b5c955e022901ba1358aa5a97091b27 /missing.h
parentbece43b9ab395402f97826d332b3f960d64b73a5 (diff)
downloadruby-d994012a0ad64abf7ba3e7d7fe71f6528f2b0fa3.tar.gz
ruby-d994012a0ad64abf7ba3e7d7fe71f6528f2b0fa3.tar.xz
ruby-d994012a0ad64abf7ba3e7d7fe71f6528f2b0fa3.zip
* missing.h (isnan): avoid macro expantion
"extern int isinf(double);" to "extern int ((sizeof(double)==sizeof(float))?_Isinff(double):_Isinf(double));" on HP-UX. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9783 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'missing.h')
-rw-r--r--missing.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/missing.h b/missing.h
index 5b4dcc274..1b9ca2e20 100644
--- a/missing.h
+++ b/missing.h
@@ -62,11 +62,13 @@ extern double erf(double);
extern double erfc(double);
#endif
-#ifndef HAVE_ISINF
-# if defined(HAVE_FINITE) && defined(HAVE_ISNAN)
-# define isinf(x) (!finite(x) && !isnan(x))
-# else
+#ifndef isinf
+# ifndef HAVE_ISINF
+# if defined(HAVE_FINITE) && defined(HAVE_ISNAN)
+# define isinf(x) (!finite(x) && !isnan(x))
+# else
extern int isinf(double);
+# endif
# endif
#endif