X-Git-Url: http://git.tremily.us/?a=blobdiff_plain;f=parse-options.h;h=1c8bd8d5a0894d9deda1e849165ff38e8d594a4d;hb=260adc87b3d6c00650ba2dd493abd9a6603ca4f1;hp=71a39c60d942601a1cf30e218df56777742d5580;hpb=095d65d73b92040d7b277792172826d28225fa66;p=git.git diff --git a/parse-options.h b/parse-options.h index 71a39c60d..1c8bd8d5a 100644 --- a/parse-options.h +++ b/parse-options.h @@ -177,6 +177,10 @@ extern NORETURN void usage_msg_opt(const char *msg, extern int optbug(const struct option *opt, const char *reason); extern int opterror(const struct option *opt, const char *reason, int flags); +#if defined(__GNUC__) && ! defined(clang) +#define opterror(o,r,f) (opterror((o),(r),(f)), -1) +#endif + /*----- incremental advanced APIs -----*/ enum {