diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-15 14:36:28 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2010-10-15 14:36:28 +0000 |
commit | ba8dc58ebbc5a225ffe6788c29ffdd0442b30e67 (patch) | |
tree | f68c25dd960b6a67ff44d8818aaa4b609e309cb2 /file.c | |
parent | e8e2ea4866729544943438b1bef072891e3adc30 (diff) | |
download | ruby-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.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |