diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-02-26 19:06:09 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2005-02-26 19:06:09 +0000 |
commit | 638364436dbf485e773e9eec371483bcd17a2770 (patch) | |
tree | 0aa3ebf21119e5bcf2c63d9ca4e641ac90a113c0 /include | |
parent | 347f9dcbe91a7a99386a770ddc6d4daad340d5c5 (diff) |
Fix build of new IVR stuff for GCC 2.96 and later gcc's too (bug #3639)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@5091 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'include')
-rwxr-xr-x | include/asterisk/app.h | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/asterisk/app.h b/include/asterisk/app.h index 3eb87c399..222dbaeb4 100755 --- a/include/asterisk/app.h +++ b/include/asterisk/app.h @@ -59,9 +59,14 @@ struct ast_ivr_option { struct ast_ivr_menu { char *title; /* Title of menu */ unsigned int flags; /* Flags */ - struct ast_ivr_option options[]; /* All options */ + struct ast_ivr_option *options; /* All options */ }; +#define AST_IVR_DECLARE_MENU(holder,title,flags,foo...) \ + static struct ast_ivr_option __options_##holder[] = foo;\ + static struct ast_ivr_menu holder = { title, flags, __options_##holder } + + /*! Runs an IVR menu, returns 0 on successful completion, -1 on hangup, or -2 on user error in menu */ extern int ast_ivr_menu_run(struct ast_channel *c, struct ast_ivr_menu *menu, void *cbdata); |