summaryrefslogtreecommitdiff
path: root/include/ruby
diff options
context:
space:
mode:
authorusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-01 03:06:07 +0000
committerusa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-04-01 03:06:07 +0000
commitc530b9d60a2bbbd6841797f6a6f980cdbc413771 (patch)
tree0d2226b331a9dfde6cd749ce9148e1e7684a77e6 /include/ruby
parent171131061e65d46a746c6bb96dff3b1c2ae515aa (diff)
* include/ruby/ruby.h (PRE_TIMET_PREFIX): define if configure doesn't
defines it. [ruby-core:29190] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27137 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r--include/ruby/ruby.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index 26bd2ee065..7b482ccb17 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -129,6 +129,16 @@ typedef char ruby_check_sizeof_voidp[SIZEOF_VOIDP == sizeof(void*) ? 1 : -1];
# define PRI_VALUE_PREFIX ""
#endif
+#ifndef PRI_TIMET_PREFIX
+# if SIZEOF_TIME_T == SIZEOF_INT
+# define PRI_TIMET_PREFIX
+# elif SIZEOF_TIME_T == SIZEOF_LONG
+# define PRI_TIMET_PREFIX "l"
+# elif SIZEOF_TIME_T == SIZEOF_LONG_LONG
+# define PRI_TIMET_PREFIX "ll"
+# endif
+#endif
+
#if defined PRIdPTR
# define PRI_PTRDIFF_PREFIX "t"
#elif SIZEOF_PTRDIFF_T == SIZEOF_INT