From: Cebtenzzre Date: Fri, 15 Sep 2023 18:02:01 +0000 (-0400) Subject: common : do not use GNU zero-length __VA_ARGS__ extension (#3195) X-Git-Tag: gguf-v0.4.0~63 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=80291a1d02a07f7f66666fb576c5b1e75aa48b46;p=pkg%2Fggml%2Fsources%2Fllama.cpp common : do not use GNU zero-length __VA_ARGS__ extension (#3195) --- 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