Changeset 3737


Ignore:
Timestamp:
Jul 2, 2013, 1:22:27 PM (11 years ago)
Author:
ldelgass
Message:

Fix for building with Ruby 1.8 (define RSTRING_PTR/LEN if they aren't defined)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lang/ruby/Ruby_Rappture.cc

    r3638 r3737  
    2828#include "ruby.h"        /* VALUE, rb_*(), Data_*_Struct(), NUM2INT(),
    2929                            INT2NUM(), NUM2DBL(), Str2Cstr(), ANYARGS */
     30
     31#ifndef RSTRING_PTR
     32#define RSTRING_PTR(s) (RSTRING(s)->ptr)
     33#endif
     34#ifndef RSTRING_LEN
     35#define RSTRING_LEN(s) (RSTRING(s)->len)
     36#endif
    3037
    3138/******************************************************************************
Note: See TracChangeset for help on using the changeset viewer.