Define infinity when it's not defined
diff --git a/transform_util.c b/transform_util.c
index 50850c8..bcc1a3e 100644
--- a/transform_util.c
+++ b/transform_util.c
@@ -1,3 +1,5 @@
+#define _ISOC99_SOURCE  /* for INFINITY */
+
 #include <math.h>
 #include <assert.h>
 #include <string.h> //memcpy
@@ -5,6 +7,10 @@
 #include "transform_util.h"
 #include "matrix.h"
 
+#if !defined(INFINITY)
+#define INFINITY HUGE_VAL
+#endif
+
 #define PARAMETRIC_CURVE_TYPE 0x70617261 //'para'
 
 /* value must be a value between 0 and 1 */