Skip to content
This repository has been archived by the owner on Sep 24, 2022. It is now read-only.

Fix for building with Visual Studio 2008 Express #15

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Fix for building with Visual Studio 2008 Express (link error to be pr…
…ecise)

I needed to add 1 define in 3 files, betweend #if defined(_WIN32) guards :
- #define strncasecmp	_strnicmp
- #define snprintf	_snprintf
  • Loading branch information
SRombauts committed Mar 25, 2012
commit 738806a949296abf740d061f22ccffc39f1caeb1
4 changes: 4 additions & 0 deletions src/sundown/autolink.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
4 changes: 4 additions & 0 deletions src/sundown/html_smartypants.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 4 additions & 0 deletions src/sundown/markdown.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down