Fix Windows build for 1.7 release (moar)

This commit is contained in:
Nicolas Williams committed 2021-09-06 22:17:57 -05:00
1 parent 34182cca7b
commit a9ce7244b4
3 files changed
+22 -20

No files matched your search

+2
View File
@@ -15,6 +15,7 @@
#include <shellapi.h>
#include <wchar.h>
#include <wtypes.h>
extern void jv_tsd_dtoa_ctx_init();
#endif
#if !defined(HAVE_ISATTY) && defined(HAVE__ISATTY)
@@ -281,6 +282,7 @@ int main(int argc, char* argv[]) {
jv program_arguments = jv_object(); /* named arguments */
#ifdef WIN32
jv_tsd_dtoa_ctx_init();
fflush(stdout);
fflush(stderr);
_setmode(fileno(stdout), _O_TEXT | _O_U8TEXT);