[asterisk-commits] kharwell: branch 12 r406788 - in /branches/12: include/asterisk/ res/res_pjsi...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Jan 28 14:42:44 CST 2014


Author: kharwell
Date: Tue Jan 28 14:42:41 2014
New Revision: 406788

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=406788
Log:
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)

Modified:
    branches/12/include/asterisk/compat.h
    branches/12/res/res_pjsip/include/res_pjsip_private.h

Modified: branches/12/include/asterisk/compat.h
URL: http://svnview.digium.com/svn/asterisk/branches/12/include/asterisk/compat.h?view=diff&rev=406788&r1=406787&r2=406788
==============================================================================
--- branches/12/include/asterisk/compat.h (original)
+++ branches/12/include/asterisk/compat.h Tue Jan 28 14:42:41 2014
@@ -224,4 +224,12 @@
 #endif
 #endif
 
-#endif
+#ifndef INFINITY
+#define INFINITY (1.0/0.0)
+#endif
+
+#ifndef NAN
+#define NAN (0.0/0.0)
+#endif
+
+#endif

Modified: branches/12/res/res_pjsip/include/res_pjsip_private.h
URL: http://svnview.digium.com/svn/asterisk/branches/12/res/res_pjsip/include/res_pjsip_private.h?view=diff&rev=406788&r1=406787&r2=406788
==============================================================================
--- branches/12/res/res_pjsip/include/res_pjsip_private.h (original)
+++ branches/12/res/res_pjsip/include/res_pjsip_private.h Tue Jan 28 14:42:41 2014
@@ -9,6 +9,7 @@
 #define RES_PJSIP_PRIVATE_H_
 
 #include "asterisk/module.h"
+#include "asterisk/compat.h"
 
 struct ao2_container;
 struct ast_threadpool_options;




More information about the asterisk-commits mailing list