Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #16 from nevans/master

workaround old version of math.h missing INFINITY
  • Loading branch information...
commit f937a7fa7f809e896d0d384ba5763c287d9603d8 2 parents ba75f63 + 7c986c5
@ohler55 authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.