diff options
author | Steve Murphy <murf@digium.com> | 2008-01-16 01:35:10 +0000 |
---|---|---|
committer | Steve Murphy <murf@digium.com> | 2008-01-16 01:35:10 +0000 |
commit | 241de02854f1179925b70170b7a50f8185439811 (patch) | |
tree | d92c4c33b7ab0b5c9559465c34058e1d530c97c1 /main/ast_expr2.y | |
parent | c692e1cacbb2bd7a11a0322110bb1e52726424ce (diff) |
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
Diffstat (limited to 'main/ast_expr2.y')
-rw-r--r-- | main/ast_expr2.y | 10 |
1 files changed, 10 insertions, 0 deletions
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 <stdio.h> #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 |