summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/asterisk/compat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/asterisk/compat.h b/include/asterisk/compat.h
index e5147cbde..c9c99c150 100644
--- a/include/asterisk/compat.h
+++ b/include/asterisk/compat.h
@@ -224,4 +224,12 @@ float roundf(float x);
#endif
#endif
+#ifndef INFINITY
+#define INFINITY (1.0/0.0)
+#endif
+
+#ifndef NAN
+#define NAN (0.0/0.0)
+#endif
+
#endif