diff options
author | Charles Oliver Nutter <headius@headius.com> | 2017-01-13 13:39:32 -0600 |
---|---|---|
committer | Charles Oliver Nutter <headius@headius.com> | 2017-01-13 13:39:32 -0600 |
commit | 2fe33f4e93bb452b7dc4e086499eb37422245d64 (patch) | |
tree | 33ca586cc07b34053715178d6127818469e8c757 | |
parent | 503c4dbb8e33c76598864c39e433e97b9bb9ed7c (diff) | |
download | ffi-2fe33f4e93bb452b7dc4e086499eb37422245d64.tar.gz |
Backport PRIsVALUE for pre 2.0 Rubies.
-rw-r--r-- | ext/ffi_c/AbstractMemory.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/ffi_c/AbstractMemory.c b/ext/ffi_c/AbstractMemory.c index 971d244..b81884a 100644 --- a/ext/ffi_c/AbstractMemory.c +++ b/ext/ffi_c/AbstractMemory.c @@ -49,6 +49,9 @@ #include "Function.h" #include "LongDouble.h" +#ifndef PRIsVALUE +# define PRIsVALUE "s" +#endif static inline char* memory_address(VALUE self); VALUE rbffi_AbstractMemoryClass = Qnil; |