diff options
author | Cebtenzzre <cebtenzzre@gmail.com> | 2023-09-15 14:02:01 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-09-15 21:02:01 +0300 |
commit | 80291a1d02a07f7f66666fb576c5b1e75aa48b46 (patch) | |
tree | 44899ae48a26df8251aae70f734779681eb499b8 /common | |
parent | c6f1491da032238241e01021c8c58d7b540a043f (diff) |
common : do not use GNU zero-length __VA_ARGS__ extension (#3195)
Diffstat (limited to 'common')
-rw-r--r-- | common/common.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/common/common.h b/common/common.h index 4979f99d..37d15415 100644 --- a/common/common.h +++ b/common/common.h @@ -20,8 +20,8 @@ #define DIRECTORY_SEPARATOR '/' #endif // _WIN32 -#define die(msg) do { fputs("error: " msg "\n", stderr); exit(1); } while (0) -#define die_fmt(fmt, ...) do { fprintf(stderr, "error: " fmt "\n", ##__VA_ARGS__); exit(1); } while (0) +#define die(msg) do { fputs("error: " msg "\n", stderr); exit(1); } while (0) +#define die_fmt(fmt, ...) do { fprintf(stderr, "error: " fmt "\n", __VA_ARGS__); exit(1); } while (0) // // CLI argument parsing |