Sha256: f49fdb46a4e956951d87eccd2d5764fb4501a4a7127ef47d6588987451dd6669

Contents?: true

Size: 428 Bytes

Versions: 3

Compression:

Stored size: 428 Bytes

Contents

#ifndef RUBY_VIPS_H
#define RUBY_VIPS_H

#include "ruby.h"
#include "vips/vips.h"

extern VALUE mVIPS, eVIPSError;

void vips_lib_error();

/* Backports from ruby 1.9.2 for ruby 1.8.7
 */

#ifndef DBL2NUM
#define DBL2NUM(dbl) rb_float_new(dbl)
#endif

#ifndef RARRAY_LENINT
#define RARRAY_LENINT(ary) RARRAY_LEN(ary)
#endif

#ifndef rb_str_new_cstr
#define rb_str_new_cstr(str) rb_str_new(str, (long)strlen(str))
#endif

#endif

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ruby-vips-0.2.1 ext/ruby_vips.h
ruby-vips-0.2.0 ext/ruby_vips.h
ruby-vips-0.1.1 ext/ruby_vips.h