vmg / sundown

Standards compliant, fast, secure markdown processing library in C
1.99k stars 385 forks source link

Fix for building with Visual Studio #98

Closed SRombauts closed 12 years ago

SRombauts commented 12 years ago

I know that two other pull request also handle this issue, but I believe that this is the smallest/cleanest way to handle the portability.

Correct the following link errors: markdown.obj : error LNK2019: unresolved external symbol _strncasecmp referenced in function _find_block_tag autolink.obj : error LNK2001: unresolved external symbol _strncasecmp html_smartypants.obj : error LNK2019: unresolved external symbol _snprintf referenced in function _smartypants_quotes

I needed to add 1 define in 3 files, betweend #if defined(_WIN32) guards :

Thank you, Srombauts

vmg commented 12 years ago

Thank you so much. I didn't quite like the idea of adding a Windows-only header.

SRombauts commented 12 years ago

Thanks, this way you've mostly fixed @FSX/misaka and thus @Anomareh/mynt under Windows :)

chobie commented 12 years ago

Thank you, this would be helpful for PECL Sundown under Windows!