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

ruby-changes:31167

From: nobu <ko1@a...>
Date: Fri, 11 Oct 2013 08:52:42 +0900 (JST)
Subject: [ruby-changes:31167] nobu:r43246 (trunk): win32.h: define or declare finite always

nobu	2013-10-11 08:52:38 +0900 (Fri, 11 Oct 2013)

  New Revision: 43246

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43246

  Log:
    win32.h: define or declare finite always
    
    * include/ruby/win32.h (finite): always define or declare.  some
      mingw (maybe w64 only?) lack the declaration.

  Modified files:
    trunk/include/ruby/win32.h
Index: include/ruby/win32.h
===================================================================
--- include/ruby/win32.h	(revision 43245)
+++ include/ruby/win32.h	(revision 43246)
@@ -372,6 +372,8 @@ scalb(double a, long b) https://github.com/ruby/ruby/blob/trunk/include/ruby/win32.h#L372
 {
     return _scalb(a, b);
 }
+#else
+__declspec(dllimport) extern int finite(double);
 #endif
 
 #if !defined S_IFIFO && defined _S_IFIFO

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

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