From 241de02854f1179925b70170b7a50f8185439811 Mon Sep 17 00:00:00 2001 From: Steve Murphy Date: Wed, 16 Jan 2008 01:35:10 +0000 Subject: Terry found this problem with running the expr2 parser on OSX. Make the #defines come out the same between the parser & lexer. git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@98953 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- main/ast_expr2.y | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'main/ast_expr2.y') diff --git a/main/ast_expr2.y b/main/ast_expr2.y index cb46aeb2b..7eba6d165 100644 --- a/main/ast_expr2.y +++ b/main/ast_expr2.y @@ -16,9 +16,19 @@ #include #include "asterisk.h" ASTERISK_FILE_VERSION(__FILE__, "$Revision$") +#ifdef STANDALONE +#ifndef __USE_ISOC99 +#define __USE_ISOC99 1 +#endif +#endif +#ifdef __USE_ISOC99 #define FP___PRINTF "%.18Lg" #define FP___TYPE long double +#else +#define FP___PRINTF "%.16g" +#define FP___TYPE double +#endif #ifdef HAVE_COSL #define FUNC_COS cosl -- cgit v1.2.3