include/rb_gsl_common.h in gsl-1.12.109 vs include/rb_gsl_common.h in gsl-1.14.5
- old
+ new
@@ -14,10 +14,11 @@
#include "rb_gsl_config.h"
#include "ruby.h"
#include <ctype.h>
#include <gsl/gsl_errno.h>
+#include <gsl/gsl_version.h>
#include <gsl/gsl_math.h>
#include <gsl/gsl_complex.h>
#include <gsl/gsl_vector.h>
#include <gsl/gsl_matrix.h>
#include <gsl/gsl_permutation.h>
@@ -308,9 +309,14 @@
#define RB_GSL_MAKE_PROC rb_block_proc()
#define STR2CHARPTR StringValuePtr
#else
#define RB_GSL_MAKE_PROC rb_f_lambda()
#define STR2CHARPTR STR2CSTR
+#endif
+
+// Added 2010/Sep/29
+#ifdef RUBY_1_9_2_LATER
+#define STR2CSTR StringValuePtr
#endif
void make_graphcommand(char *command, VALUE hash);
int rbgsl_complex_equal(const gsl_complex *z1, const gsl_complex *z2, double eps);