Skip to content
Snippets Groups Projects
Commit 725eca3b authored by Jaco Kroon's avatar Jaco Kroon Committed by Friendly Automation
Browse files

app.h: Restore C++ compatibility for macro AST_DECLARE_APP_ARGS


This partially reverts commit 3d1bf3c5,
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: default avatarJaco Kroon <jaco@uls.co.za>
parent 5894535f
Branches
Tags
3 merge requests!138Merge branch asterisk-20.3.0 into devel properly,!123Merge asterisk '20.3.0' into devel,!118Draft: manager: AOC-S support for AOCMessage
......@@ -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; \
}
/*!
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment