Permalink
Browse files

Possible math.h-Bug workaround

  • Loading branch information...
1 parent 4492add commit 7ba23fcf156b6de864ff5c8e7448c8f5fd39d0f2 Sebastian Georgi committed Aug 3, 2012
Showing with 6 additions and 0 deletions.
  1. +6 −0 ext/oj/dump.c
View
@@ -43,6 +43,12 @@
#define rb_eEncodingError rb_eException
#endif
+//Workaround:
+#ifndef INFINITY
+#define INFINITY (1.0/0.0)
+#endif
+
+
typedef unsigned long ulong;
typedef struct _Out {

0 comments on commit 7ba23fc

Please sign in to comment.