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 <mail@christoph.anton.mitterer.name>
This commit is contained in:
Christoph Anton Mitterer authored and GitHub committed 2024-05-30 08:21:10 +09:00
1 parent 7cd23f1f2f
commit 5208a4425f
1 file changed
+1 -1
+1 -1
View File
@@ -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);