Permalink
Browse files

Merge pull request #98 from SRombauts/master

Fix for building with Visual Studio
  • Loading branch information...
2 parents 975df62 + 37712fd commit 690ec8748a530284ed1edcb642d8d896e724ca08 @vmg vmg committed Mar 25, 2012
Showing with 12 additions and 0 deletions.
  1. +4 −0 html/html_smartypants.c
  2. +4 −0 src/autolink.c
  3. +4 −0 src/markdown.c
View
4 html/html_smartypants.c
@@ -22,6 +22,10 @@
#include <stdio.h>
#include <ctype.h>
+#if defined(_WIN32)
+#define snprintf _snprintf
+#endif
+
struct smartypants_data {
int in_squote;
int in_dquote;
View
4 src/autolink.c
@@ -21,6 +21,10 @@
#include <stdio.h>
#include <ctype.h>
+#if defined(_WIN32)
+#define strncasecmp _strnicmp
+#endif
+
int
sd_autolink_issafe(const uint8_t *link, size_t link_len)
{
View
4 src/markdown.c
@@ -25,6 +25,10 @@
#include <ctype.h>
#include <stdio.h>
+#if defined(_WIN32)
+#define strncasecmp _strnicmp
+#endif
+
#define REF_TABLE_SIZE 8
#define BUFFER_BLOCK 0

0 comments on commit 690ec87

Please sign in to comment.