Pārlūkot izejas kodu

common : do not use GNU zero-length __VA_ARGS__ extension (#3195)

Cebtenzzre 2 gadi atpakaļ
vecāks
revīzija
80291a1d02
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. 2 2
      common/common.h

+ 2 - 2
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