From 2c6a46963d76706506d0a49ca2e7444163db82d7 Mon Sep 17 00:00:00 2001 From: Lephenixnoir Date: Sat, 10 Apr 2021 22:57:31 +0200 Subject: [PATCH] fxlink: replace __VA_OPT__ with the ugly paste hack Good job Clang, you really messed up that one. --- fxlink/util.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fxlink/util.h b/fxlink/util.h index 535005e..97dbabc 100644 --- a/fxlink/util.h +++ b/fxlink/util.h @@ -11,22 +11,22 @@ /* Literal error message printed to stderr, evaluates to 1 for a combined return/exit() call */ #define err(fmt, ...) ({ \ - fprintf(stderr, "error: " fmt "\n" __VA_OPT__(,) __VA_ARGS__); \ + fprintf(stderr, "error: " fmt "\n", ##__VA_ARGS__); \ 1; \ }) /* Fatal error that includes a libusb error message */ #define libusb_err(rc, fmt, ...) ({ \ - fprintf(stderr, "error: " fmt ": %s\n" __VA_OPT__(,) __VA_ARGS__, \ + fprintf(stderr, "error: " fmt ": %s\n", ##__VA_ARGS__, \ libusb_strerror(rc)); \ 1; \ }) /* Warning message */ #define wrn(fmt, ...) \ - fprintf(stderr, "warning: " fmt "\n" __VA_OPT__(,) __VA_ARGS__) + fprintf(stderr, "warning: " fmt "\n", ##__VA_ARGS__) /* Warning that includes a libusb error message */ #define libusb_wrn(rc, fmt, ...) \ - fprintf(stderr, "error: " fmt ": %s\n" __VA_OPT__(,) __VA_ARGS__, \ + fprintf(stderr, "error: " fmt ": %s\n", ##__VA_ARGS__, \ libusb_strerror(rc)) //---