From 5208a4425f24f5c366dfed2eae85f1935199d683 Mon Sep 17 00:00:00 2001 From: Christoph Anton Mitterer Date: Thu, 30 May 2024 01:21:10 +0200 Subject: [PATCH] fix option parsing of `--binary` on non-Windows platforms (#3131) `-b`/`--binary` should be accepted on all platforms so that they can be used in code that is meant to be portable. Signed-off-by: Christoph Anton Mitterer --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 83233080..2f26ff2b 100644 --- a/src/main.c +++ b/src/main.c @@ -440,8 +440,8 @@ int main(int argc, char* argv[]) { _setmode(fileno(stdin), _O_BINARY); _setmode(fileno(stdout), _O_BINARY); _setmode(fileno(stderr), _O_BINARY); - if (!short_opts) continue; #endif + if (!short_opts) continue; } if (isoption(argv[i], 0, "tab", &short_opts)) { dumpopts &= ~JV_PRINT_INDENT_FLAGS(7);