From 2166f498f99011d9b67cd5c4bfe06337656698a6 Mon Sep 17 00:00:00 2001 From: Yakumoo <26108275+Yakumoo@users.noreply.github.com> Date: Fri, 26 Aug 2022 17:34:58 +0200 Subject: [PATCH] Change syntax __VAR_ARGS__ to __VA_ARGS__ (#376) * Change syntax __VAR_ARGS__ to __VA_ARGS__ Signed-off-by: Yakumoo <26108275+Yakumoo@users.noreply.github.com> * Remove __VA_ARGS__ Signed-off-by: Yakumoo (cherry picked from commit c49b41c9b19ae9e76e746db662285fc6c7d3b1af) --- include/rcutils/stdatomic_helper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/rcutils/stdatomic_helper.h b/include/rcutils/stdatomic_helper.h index dfe9371a..2c39e71d 100644 --- a/include/rcutils/stdatomic_helper.h +++ b/include/rcutils/stdatomic_helper.h @@ -32,9 +32,9 @@ // The my__has_feature avoids a preprocessor error when you check for it and // use it on the same line below. #if defined(__has_feature) -#define my__has_feature(...) __has_feature(__VAR_ARGS__) +#define my__has_feature __has_feature #else -#define my__has_feature(...) 0 +#define my__has_feature(x) 0 #endif #if !defined(__clang__) && defined(__GNUC__) && __GNUC__ <= 4 && __GNUC_MINOR__ <= 9