aboutsummaryrefslogtreecommitdiffstats
path: root/main/ast_expr2.fl
diff options
context:
space:
mode:
Diffstat (limited to 'main/ast_expr2.fl')
-rw-r--r--main/ast_expr2.fl6
1 files changed, 2 insertions, 4 deletions
diff --git a/main/ast_expr2.fl b/main/ast_expr2.fl
index 0749686fa..a6b5dc1d4 100644
--- a/main/ast_expr2.fl
+++ b/main/ast_expr2.fl
@@ -22,12 +22,10 @@
* \brief Dialplan Expression Lexical Scanner
*/
-#include "asterisk.h"
-
#include <sys/types.h>
#include <stdio.h>
-#ifndef STANDALONE
+#if !defined(STANDALONE)
ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#else
#ifndef __USE_ISOC99
@@ -275,7 +273,7 @@ int ast_expr(char *expr, char *buf, int length, struct ast_channel *chan)
return_value = (res_length <= length) ? res_length : length;
} else {
if (io.val->u.s)
-#if defined(STANDALONE) || defined(LOW_MEMORY) || defined(STANDALONE_AEL)
+#if defined(STANDALONE) || defined(LOW_MEMORY) || defined(STANDALONE)
strncpy(buf, io.val->u.s, length - 1);
#else /* !STANDALONE && !LOW_MEMORY */
ast_copy_string(buf, io.val->u.s, length);