Skip to content

Commit 80291a1

Browse files
authored
common : do not use GNU zero-length __VA_ARGS__ extension (#3195)
1 parent c6f1491 commit 80291a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

common/common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@
2020
#define DIRECTORY_SEPARATOR '/'
2121
#endif // _WIN32
2222

23-
#define die(msg) do { fputs("error: " msg "\n", stderr); exit(1); } while (0)
24-
#define die_fmt(fmt, ...) do { fprintf(stderr, "error: " fmt "\n", ##__VA_ARGS__); exit(1); } while (0)
23+
#define die(msg) do { fputs("error: " msg "\n", stderr); exit(1); } while (0)
24+
#define die_fmt(fmt, ...) do { fprintf(stderr, "error: " fmt "\n", __VA_ARGS__); exit(1); } while (0)
2525

2626
//
2727
// CLI argument parsing

0 commit comments

Comments
 (0)