cmark

My personal build of CMark ✏️

Commit
df5eed3b7fce2853e331c7de5294668c5b376334
Parent
7dfe7fff11d7c22404db9f72c77bdb930267c634
Author
John MacFarlane <jgm@berkeley.edu>
Date

Merge pull request #118 from nwellnhof/win-eol-fix2

Set stdin to binary mode on Windows

Diffstat

1 file changed, 1 insertion, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified src/main.c 1 1 0
diff --git a/src/main.c b/src/main.c
@@ -75,6 +75,7 @@ int main(int argc, char *argv[]) {
   int options = CMARK_OPT_DEFAULT;
 
 #if defined(_WIN32) && !defined(__CYGWIN__)
+  _setmode(_fileno(stdin), _O_BINARY);
   _setmode(_fileno(stdout), _O_BINARY);
 #endif