Merge pull request #98 from SRombauts/master

Fix for building with Visual Studio
This commit is contained in:
Vicent Martí 2012-03-25 14:58:49 -07:00
commit 690ec8748a
3 changed files with 12 additions and 0 deletions

View file

@ -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 file

@ -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 file

@ -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