ext/games_dice/probabilities.c in games_dice-0.3.1 vs ext/games_dice/probabilities.c in games_dice-0.3.2
- old
+ new
@@ -3,10 +3,16 @@
#include "probabilities.h"
// Ruby 1.8.7 compatibility patch
#ifndef DBL2NUM
#define DBL2NUM( dbl_val ) rb_float_new( dbl_val )
-enum st_retval {ST_CONTINUE, ST_STOP, ST_DELETE, ST_CHECK};
+#endif
+
+// Force inclusion of hash declarations (only MRI includes by default)
+#if RJB_RUBY_VERSION_CODE < 190
+#include "st.h"
+#else
+#include "ruby/st.h"
#endif
VALUE Probabilities = Qnil;
///////////////////////////////////////////////////////////////////////////////////////////////////