WriteFile() on WIN32 when stdout isatty (fix #824)

Use WriteFile() and bypass stdio IFF stdout isatty and we're on Windows.
This commit is contained in:
Nicolas Williams committed 2015-06-22 20:47:47 -05:00
1 parent 10cbb9b580
commit 8aecf82bfe
4 files changed
+130 -81

No files matched your search

+2
View File
@@ -11,6 +11,8 @@ jv expand_path(jv);
jv get_home(void);
jv jq_realpath(jv);
void priv_fwrite(const char *, size_t, FILE *, int);
const void *_jq_memmem(const void *haystack, size_t haystacklen,
const void *needle, size_t needlelen);