cmark

My personal build of CMark ✏️

Commit
7f0d1a80c7871a97dcf6495fba9f0e3c8d86be81
Parent
c818df9888d452f0ae54b3a504eefdd970fd73d8
Author
John MacFarlane <jgm@berkeley.edu>
Date

Merge branch 'abduelhamit-master'

Diffstat

1 file changed, 4 insertions, 0 deletions

Status File Name N° Changes Insertions Deletions
Modified src/buffer.c 4 4 0
diff --git a/src/buffer.c b/src/buffer.c
@@ -19,6 +19,10 @@ unsigned char strbuf__oom[1];
 	if ((d) > buf->asize && strbuf_grow(b, (d)) < 0)	\
 		return -1;
 
+#ifndef MIN
+#define MIN(x,y)  ((x<y) ? x : y)
+#endif
+
 void strbuf_init(strbuf *buf, int initial_size)
 {
 	buf->asize = 0;