Merged revisions 239920 via svnmerge from

https://origsvn.digium.com/svn/asterisk/trunk

........
  r239920 | tilghman | 2010-01-13 14:38:42 -0600 (Wed, 13 Jan 2010) | 2 lines
  
  Flex uses fwrite incorrectly, which breaks the build.  Providing a workaround.
........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@243058 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2010-01-25 23:26:07 +00:00
parent 3c5eaf9639
commit d20bd77c11
4 changed files with 204 additions and 139 deletions

View File

@@ -65,6 +65,11 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/channel.h"
#endif
/*!\note The latest Flex uses fwrite without checking its return value, which
* is a warning on some compilers. Therefore, we use this workaround, to trick
* the compiler into suppressing this warning. */
#define fwrite(a,b,c,d) do { int __res = fwrite(a,b,c,d); (__res); } while (0)
enum valtype {
AST_EXPR_number, AST_EXPR_numeric_string, AST_EXPR_string
} ;