summaryrefslogtreecommitdiff
path: root/include/ruby/win32.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-10 23:52:38 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-10-10 23:52:38 +0000
commit2d4c2453cc3c277e7ea7e565300c26eeadda20e4 (patch)
treeb11bbdab53b975383bc13add239f9e00f4adbbf7 /include/ruby/win32.h
parent53861b8acd18cc5241d044f6246568cbac6a31cf (diff)
win32.h: define or declare finite always
* include/ruby/win32.h (finite): always define or declare. some mingw (maybe w64 only?) lack the declaration. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43246 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby/win32.h')
-rw-r--r--include/ruby/win32.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/ruby/win32.h b/include/ruby/win32.h
index e5d6f52..7dea931 100644
--- a/include/ruby/win32.h
+++ b/include/ruby/win32.h
@@ -372,6 +372,8 @@ scalb(double a, long b)
{
return _scalb(a, b);
}
+#else
+__declspec(dllimport) extern int finite(double);
#endif
#if !defined S_IFIFO && defined _S_IFIFO