diff options
-rw-r--r-- | include/asterisk/compat.h | 8 | ||||
-rw-r--r-- | res/res_pjsip/include/res_pjsip_private.h | 1 |
2 files changed, 9 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 diff --git a/res/res_pjsip/include/res_pjsip_private.h b/res/res_pjsip/include/res_pjsip_private.h index a2d1c6eb4..aee6e3e3f 100644 --- a/res/res_pjsip/include/res_pjsip_private.h +++ b/res/res_pjsip/include/res_pjsip_private.h @@ -9,6 +9,7 @@ #define RES_PJSIP_PRIVATE_H_ #include "asterisk/module.h" +#include "asterisk/compat.h" struct ao2_container; struct ast_threadpool_options; |