Allow "REMAINDER" to function properly in expressions.
authorJason Parker <jparker@digium.com>
Mon, 28 Dec 2009 22:09:40 +0000 (22:09 +0000)
committerJason Parker <jparker@digium.com>
Mon, 28 Dec 2009 22:09:40 +0000 (22:09 +0000)
(closes issue #16427)
Reported by: wdoekes
Patches:
      ast16-reminder-remainder.patch uploaded by wdoekes (license 717)
Tested by: wdoekes

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@236713 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/ast_expr2.c
main/ast_expr2.y

index 4dcda2e..df75567 100644 (file)
@@ -237,10 +237,10 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #define FUNC_LOG       (long double)log
 #endif
 
-#ifdef HAVE_REMINDERL
-#define FUNC_REMINDER   reminderl
-#elif defined(HAVE_REMINDER)
-#define FUNC_REMINDER  (long double)reminder
+#ifdef HAVE_REMAINDERL
+#define FUNC_REMAINDER   remainderl
+#elif defined(HAVE_REMAINDER)
+#define FUNC_REMAINDER (long double)remainder
 #endif
 
 #ifdef HAVE_FMODL
index dc90aaa..10e207e 100644 (file)
@@ -106,10 +106,10 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
 #define FUNC_LOG       (long double)log
 #endif
 
-#ifdef HAVE_REMINDERL
-#define FUNC_REMINDER   reminderl
-#elif defined(HAVE_REMINDER)
-#define FUNC_REMINDER  (long double)reminder
+#ifdef HAVE_REMAINDERL
+#define FUNC_REMAINDER   remainderl
+#elif defined(HAVE_REMAINDER)
+#define FUNC_REMAINDER (long double)remainder
 #endif
 
 #ifdef HAVE_FMODL