Permalink
Browse files

workaround old version of math.h missing INFINITY

  • Loading branch information...
1 parent ce37cc9 commit 528f795fb3a5622225f3ec3e3b3de4bd4ff88916 @nevans 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
@@ -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
Binary file not shown.

0 comments on commit 528f795

Please sign in to comment.