Skip to content
Browse files

Merge pull request #16 from nevans/master

workaround old version of math.h missing INFINITY
  • Loading branch information...
2 parents ba75f63 + 7c986c5 commit f937a7fa7f809e896d0d384ba5763c287d9603d8 @ohler55 committed Apr 25, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 ext/oj/load.c
  2. BIN ext/oj/oj.so
View
5 ext/oj/load.c
@@ -33,6 +33,11 @@
#include <string.h>
#include <math.h>
+//Workaround:
+#ifndef INFINITY
+#define INFINITY (1.0/0.0)
+#endif
+
#include "oj.h"
enum {
View
BIN ext/oj/oj.so
Binary file not shown.

0 comments on commit f937a7f

Please sign in to comment.
Something went wrong with that request. Please try again.