RARRAY_LEN macro for Ruby < 1.9. Small strictness fix for OCaml < 3.10.

This commit is contained in:
Richard Jones
2009-05-06 15:20:15 +01:00
parent 76758f42b1
commit 9a571d41f5
2 changed files with 11 additions and 1 deletions

View File

@@ -28,6 +28,11 @@
#include "extconf.h"
/* For Ruby < 1.9 */
#ifndef RARRAY_LEN
#define RARRAY_LEN(r) (RARRAY((r))->len)
#endif
static VALUE m_guestfs; /* guestfs module */
static VALUE c_guestfs; /* guestfs_h handle */
static VALUE e_Error; /* used for all errors */