[前][次][番号順一覧][スレッド一覧]

ruby-changes:49943

From: usa <ko1@a...>
Date: Sat, 27 Jan 2018 01:38:44 +0900 (JST)
Subject: [ruby-changes:49943] usa:r62061 (trunk): need to declare the prototype of nan() if missing

usa	2018-01-27 01:38:38 +0900 (Sat, 27 Jan 2018)

  New Revision: 62061

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=62061

  Log:
    need to declare the prototype of nan() if missing
    
    * include/ruby/missing.h (nan): need to declare the prototype of nan() if
      missing.

  Modified files:
    trunk/include/ruby/missing.h
    trunk/win32/Makefile.sub
Index: include/ruby/missing.h
===================================================================
--- include/ruby/missing.h	(revision 62060)
+++ include/ruby/missing.h	(revision 62061)
@@ -185,6 +185,10 @@ RUBY_EXTERN int isnan(double); https://github.com/ruby/ruby/blob/trunk/include/ruby/missing.h#L185
 # endif
 #endif
 
+#ifndef HAVE_NAN
+RUBY_EXTERN double nan(const char *);
+#endif
+
 #ifndef HAVE_NEXTAFTER
 RUBY_EXTERN double nextafter(double x, double y);
 #endif
Index: win32/Makefile.sub
===================================================================
--- win32/Makefile.sub	(revision 62060)
+++ win32/Makefile.sub	(revision 62061)
@@ -736,6 +736,9 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/win32/ https://github.com/ruby/ruby/blob/trunk/win32/Makefile.sub#L736
 #define HAVE_FLOCK 1
 #define HAVE_ISNAN 1
 #define HAVE_FINITE 1
+!if $(RT_VAR) >= 120
+#define HAVE_NAN 1
+!endif
 #define HAVE_HYPOT 1
 #define HAVE_FMOD 1
 #define HAVE_FREXP 1

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]