summaryrefslogtreecommitdiff
path: root/file.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-15 14:36:28 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-10-15 14:36:28 +0000
commitba8dc58ebbc5a225ffe6788c29ffdd0442b30e67 (patch)
treef68c25dd960b6a67ff44d8818aaa4b609e309cb2 /file.c
parente8e2ea4866729544943438b1bef072891e3adc30 (diff)
downloadruby-ba8dc58ebbc5a225ffe6788c29ffdd0442b30e67.tar.gz
* file.c (NUM2DEVT, DEVT2NUM, PRI_DEVT_PREFIX): fallback to
unsigned int. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29509 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'file.c')
-rw-r--r--file.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/file.c b/file.c
index fb748d91d5..9cca3d01b7 100644
--- a/file.c
+++ b/file.c
@@ -316,6 +316,16 @@ rb_stat_cmp(VALUE self, VALUE other)
#define ST2UINT(val) ((val) & ~(~1UL << (sizeof(val) * CHAR_BIT - 1)))
+#ifndef NUM2DEVT
+# define NUM2DEVT(v) NUM2UINT(v)
+#endif
+#ifndef DEVT2NUM
+# define DEVT2NUM(v) UINT2NUM(v)
+#endif
+#ifndef PRI_DEVT_PREFIX
+# define PRI_DEVT_PREFIX ""
+#endif
+
/*
* call-seq:
* stat.dev -> fixnum