Skip to content
Snippets Groups Projects
Commit d7c126f0 authored by Lyle Johnson's avatar Lyle Johnson
Browse files

Added defs of RARRAY_LEN et al for compiling on Ruby earlier than 1.8.6

parent 0c2cd6b1
No related branches found
No related tags found
No related merge requests found
......@@ -27,6 +27,20 @@
#ifndef FXRUBY_H
#define FXRUBY_H
// RARRAY_LEN, RARRAY_PTR, RSTRING_LEN and RSTRING_PTR macros not defined before Ruby 1.8.6
#ifndef RARRAY_LEN
#define RARRAY_LEN(a) RARRAY((a))->len
#endif
#ifndef RARRAY_PTR
#define RARRAY_PTR(a) RARRAY((a))->ptr
#endif
#ifndef RSTRING_LEN
#define RSTRING_LEN(s) RSTRING((s))->len
#endif
#ifndef RSTRING_PTR
#define RSTRING_PTR(s) RSTRING((s))->ptr
#endif
// Opaque type declaration for SWIG runtime support
struct swig_type_info;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment