mity / md4c

C Markdown parser. Fast. SAX-like interface. Compliant to CommonMark specification.
MIT License
776 stars 146 forks source link

fix UTF-16 Windows Compilation #27

Closed jimmyjxiao closed 6 years ago

jimmyjxiao commented 6 years ago

Wasn't compiling on Visual Studio's cl before because definitions like WORD were missing without the header. I decided to change MD_CHAR definition to wchar_t because standards and to avoid putting #include <Windows.h> into the header file, which would make it so every code file that included md4c.h would also end up including that. It's the same thing anyway, per Microsoft's website:

This type is declared in WinNT.h as follows: typedef wchar_t WCHAR;

codecov[bot] commented 6 years ago

Codecov Report

Merging #27 into master will not change coverage. The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           master      #27    +/-   ##
========================================
  Coverage   92.75%   92.75%            
========================================
  Files           1        1            
  Lines        2525     2525            
  Branches        0      629   +629     
========================================
  Hits         2342     2342            
  Misses        183      183
Impacted Files Coverage Δ
md4c/md4c.c 92.75% <ø> (ø) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update e0002e2...e3c9126. Read the comment docs.