Skip to content

Commit

Permalink
workaround old version of math.h missing INFINITY
Browse files Browse the repository at this point in the history
  • Loading branch information
nevans committed Apr 25, 2012
1 parent ba75f63 commit 7c986c5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ext/oj/load.c
Expand Up @@ -33,6 +33,11 @@
#include <string.h>
#include <math.h>

//Workaround:
#ifndef INFINITY
#define INFINITY (1.0/0.0)
#endif

#include "oj.h"

enum {
Expand Down
Binary file added ext/oj/oj.so
Binary file not shown.

0 comments on commit 7c986c5

Please sign in to comment.