diff options
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | include/ruby/missing.h | 4 |
2 files changed, 7 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Fri Jun 11 22:59:31 2010 Tanaka Akira <akr@fsij.org> + + * include/ruby/missing.h (isnan): fix compilation error on OpenBSD. + Thu Jun 24 05:44:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org> * marshal.c (struct dump_arg, struct load_arg): merge taint and diff --git a/include/ruby/missing.h b/include/ruby/missing.h index 883971cb25..e3333c77dd 100644 --- a/include/ruby/missing.h +++ b/include/ruby/missing.h @@ -112,8 +112,10 @@ RUBY_EXTERN int isinf(double); # endif #endif -#ifndef HAVE_ISNAN +#ifndef isnan +# ifndef HAVE_ISNAN RUBY_EXTERN int isnan(double); +# endif #endif /* |