summaryrefslogtreecommitdiffstats
path: root/sprintf.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-12-26 08:08:50 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2000-12-26 08:08:50 +0000
commitb35585f1361707e83be7509e309bac3c6738a81b (patch)
treec068f2e637141759cd50649e15e86eaabafe9b36 /sprintf.c
parentfcae2fd9b2eedc748432ad02f9aa5c72aa930c96 (diff)
downloadruby-b35585f1361707e83be7509e309bac3c6738a81b.tar.gz
ruby-b35585f1361707e83be7509e309bac3c6738a81b.tar.xz
ruby-b35585f1361707e83be7509e309bac3c6738a81b.zip
matz
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@1079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sprintf.c')
-rw-r--r--sprintf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sprintf.c b/sprintf.c
index 756de87ed..cb567315b 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -18,7 +18,7 @@
#define BIT_DIGITS(N) (((N)*146)/485 + 1) /* log2(10) =~ 146/485 */
-#ifndef atof
+#if !defined(atof) && !defined(HAVE_STDLIB_H)
double strtod();
#endif