[PATCH 00/15] use GCC/MSVC compatible __VA_ARGS__
Tyler Retzlaff
roretzla at linux.microsoft.com
Mon Feb 12 22:49:02 CET 2024
MSVC does not support GCC args... forwarding of args replace
with ... and __VA_ARGS__ when forwarding. Both forms of
forwarding are a compiler extension but the latter is supported
by both MSVC and GCC.
I have not been able to exhaustively test all versions of GCC so
please provide feedback as appropriate.
Tyler Retzlaff (15):
eal: use GCC and MSVC common VA ARGS extension
bpf: use GCC and MSVC common VA ARGS extension
cfgfile: use GCC and MSVC common VA ARGS extension
cmdline: use GCC and MSVC common VA ARGS extension
ip_frag: use GCC and MSVC common VA ARGS extension
compressdev: use GCC and MSVC common VA ARGS extension
metrics: use GCC and MSVC common VA ARGS extension
mldev: use GCC and MSVC common VA ARGS extension
net: use GCC and MSVC common VA ARGS extension
pdump: use GCC and MSVC common VA ARGS extension
power: use GCC and MSVC common VA ARGS extension
rawdev: use GCC and MSVC common VA ARGS extension
rcu: use GCC and MSVC common VA ARGS extension
stack: use GCC and MSVC common VA ARGS extension
vhost: use GCC and MSVC common VA ARGS extension
lib/bpf/bpf_impl.h | 4 ++--
lib/cfgfile/rte_cfgfile.c | 4 ++--
lib/cmdline/cmdline_parse.c | 2 +-
lib/cmdline/cmdline_parse_num.c | 4 ++--
lib/compressdev/rte_compressdev_internal.h | 4 ++--
lib/eal/common/eal_trace.h | 8 ++++----
lib/ip_frag/ip_frag_common.h | 4 ++--
lib/metrics/rte_metrics_telemetry.c | 12 ++++++------
lib/mldev/rte_mldev.h | 4 ++--
lib/net/rte_net_crc.c | 4 ++--
lib/pdump/rte_pdump.c | 4 ++--
lib/power/power_common.h | 6 +++---
lib/rawdev/rte_rawdev_pmd.h | 18 +++++++++---------
lib/rcu/rte_rcu_qsbr.c | 4 ++--
lib/rcu/rte_rcu_qsbr.h | 12 ++++++------
lib/stack/stack_pvt.h | 16 ++++++++--------
lib/vhost/vhost.h | 8 ++++----
lib/vhost/vhost_crypto.c | 14 +++++++-------
18 files changed, 66 insertions(+), 66 deletions(-)
--
1.8.3.1
More information about the dev
mailing list