Skip to content

Commit fca5ff9

Browse files
committed
improve patch
1 parent 6b529b0 commit fca5ff9

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

buffer_win32_compat.patch

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
diff --git a/sundown/src/buffer.h b/sundown/src/buffer.h
2-
index 221d142..ca7523b 100644
2+
index 221d142..b76ce1a 100644
33
--- a/sundown/src/buffer.h
44
+++ b/sundown/src/buffer.h
55
@@ -20,7 +20,11 @@
@@ -22,3 +22,21 @@ index 221d142..ca7523b 100644
2222
#endif
2323

2424
typedef enum {
25+
diff --git a/sundown/src/markdown.c b/sundown/src/markdown.c
26+
diff --git a/sundown/src/markdown.h b/sundown/src/markdown.h
27+
index 6f6553e..fc1a67c 100644
28+
--- a/sundown/src/markdown.h
29+
+++ b/sundown/src/markdown.h
30+
@@ -26,6 +26,12 @@
31+
extern "C" {
32+
#endif
33+
34+
+#if defined(_WIN32)
35+
+#ifndef inline
36+
+#define inline
37+
+#endif
38+
+#endif
39+
+
40+
#define SUNDOWN_VERSION "1.16.0"
41+
#define SUNDOWN_VER_MAJOR 1
42+
#define SUNDOWN_VER_MINOR 16

0 commit comments

Comments
 (0)