mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 02:40:26 +00:00
COMMON_OPTS_INIT: do not use designed initializers
Inside C++, the designed initializers are supported from version c++20 but not supported eg. with GCC 9.4, that is on Ubuntu 20.04.
This commit is contained in:
@@ -178,9 +178,9 @@ struct common_opts {
|
||||
struct exporter *exporter;
|
||||
time_ns_t start_time;
|
||||
#define COMMON_OPTS_INIT \
|
||||
.encryption = "", .mcast_if = "", .mtu = 1500, .ttl = -1, \
|
||||
.force_ip_version = 0, .exporter = NULL, \
|
||||
.start_time = get_time_in_ns(),
|
||||
/* .encryption = */ "", /* .mcast_if = */ "", /* .mtu = */ 1500, \
|
||||
/* .ttl = */ -1, /* .force_ip_version = */ 0, /* .exporter = */ NULL, \
|
||||
/* .start_time = */ get_time_in_ns(),
|
||||
};
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in New Issue
Block a user