mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
RARRAY_LEN macro for Ruby < 1.9. Small strictness fix for OCaml < 3.10.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user