Skip to content
Snippets Groups Projects
Commit 01a537d5 authored by Kevin Harwell's avatar Kevin Harwell
Browse files

res_pjsip,compat: INFINITY and NAN undefined

On some systems the values for INFINITY and NAN are not defined thus causing
a build error on those systems.  Added definitions for those if they had
not previously been defined.

(closes issue ASTERISK-23056)
Reported by: capouch
Patches:
     inf-nan-patch.txt uploaded by capouch (license 6564)
........

Merged revisions 406788 from http://svn.asterisk.org/svn/asterisk/branches/12


git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@406789 65c4cc65-6c06-0410-ace0-fbb531ad65f3
parent 3eae87fd
No related branches found
No related tags found
No related merge requests found
......@@ -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
......@@ -9,6 +9,7 @@
#define RES_PJSIP_PRIVATE_H_
#include "asterisk/module.h"
#include "asterisk/compat.h"
struct ao2_container;
struct ast_threadpool_options;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment