Skip to content

Commit cda839a

Browse files
yakunimergify[bot]
authored andcommitted
Change syntax __VAR_ARGS__ to __VA_ARGS__ (#376)
* Change syntax __VAR_ARGS__ to __VA_ARGS__ Signed-off-by: Yakumoo <crater.broker0f@icloud.com> * Remove __VA_ARGS__ Signed-off-by: Yakumoo <crater.broker0f@icloud.com> (cherry picked from commit c49b41c)
1 parent 073ceab commit cda839a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/rcutils/stdatomic_helper.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@
3232
// The my__has_feature avoids a preprocessor error when you check for it and
3333
// use it on the same line below.
3434
#if defined(__has_feature)
35-
#define my__has_feature(...) __has_feature(__VAR_ARGS__)
35+
#define my__has_feature __has_feature
3636
#else
37-
#define my__has_feature(...) 0
37+
#define my__has_feature(x) 0
3838
#endif
3939

4040
#if !defined(__clang__) && defined(__GNUC__) && __GNUC__ <= 4 && __GNUC_MINOR__ <= 9

0 commit comments

Comments
 (0)