]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
common : do not use GNU zero-length __VA_ARGS__ extension (#3195)
authorCebtenzzre <redacted>
Fri, 15 Sep 2023 18:02:01 +0000 (14:02 -0400)
committerGitHub <redacted>
Fri, 15 Sep 2023 18:02:01 +0000 (21:02 +0300)
common/common.h

index 4979f99ddbc236c82eced192350d50e3b39b970c..37d15415f15dd1472eadb6235d62eeec4757feb9 100644 (file)
@@ -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