mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-05 04:11:08 +00:00
app.h: Restore C++ compatibility for macro AST_DECLARE_APP_ARGS
This partially reverts commit 3d1bf3c537
,
specifically for app.h.
This works with both gcc 9.3.0 and 10.2.0 now, both for C and C++ (as
tested with external modules).
ASTERISK-29287
Change-Id: I5b9f02a9b290675682a1d13f1788fdda597c9fca
Signed-off-by: Jaco Kroon <jaco@uls.co.za>
This commit is contained in:
committed by
Friendly Automation
parent
5894535fed
commit
725eca3bfa
@@ -1235,10 +1235,8 @@ int ast_app_group_list_unlock(void);
|
||||
#define AST_DEFINE_APP_ARGS_TYPE(type, arglist) \
|
||||
struct type { \
|
||||
unsigned int argc; \
|
||||
union { \
|
||||
char *argv[sizeof(struct {arglist}) / sizeof(char *)]; \
|
||||
struct {arglist}; \
|
||||
}; \
|
||||
char *argv[0]; \
|
||||
arglist; \
|
||||
}
|
||||
|
||||
/*!
|
||||
|
Reference in New Issue
Block a user