ext/numerix/common.h in numerix-1.0.0 vs ext/numerix/common.h in numerix-1.0.1
- old
+ new
@@ -16,9 +16,13 @@
#define NUM2FLT(value) ((float)rb_num2dbl(value))
#define NUMERIX_WRAP(klass, ptr) Data_Wrap_Struct(klass, NULL, RUBY_DEFAULT_FREE, ptr)
#define CLASS_NAME(obj) rb_class2name(CLASS_OF(obj))
+#ifndef FLT_EPSILON
+#define FLT_EPSILON 1.19209290E-07F
+#endif
+
#define FLT_EQUAL(a, b) fabsf(a - b) < FLT_EPSILON
#define PRIVATE_CLASS_METHOD(klass, methodName) rb_funcall(klass, rb_intern("private_class_method"), 1, ID2SYM(rb_intern(methodName)))
typedef struct Vector2 {
\ No newline at end of file