Skip to content

Commit d2a2116

Browse files
use WIN32_LEAN_AND_MEAN to avoid symbol collisions
1 parent c8d2af7 commit d2a2116

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/include/cmark-gfm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ const char *cmark_version_string(void);
807807
* John MacFarlane, Vicent Marti, Kārlis Gaņģis, Nick Wellnhofer.
808808
*/
809809

810-
#if !defined(CMARK_NO_SHORT_NAMES) && !defined(_WIN32)
810+
#if !defined(CMARK_NO_SHORT_NAMES)
811811
#define NODE_DOCUMENT CMARK_NODE_DOCUMENT
812812
#define NODE_BLOCK_QUOTE CMARK_NODE_BLOCK_QUOTE
813813
#define NODE_LIST CMARK_NODE_LIST

src/include/mutex.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ pthread_mutex_lock(&NAME##_lock);
3030

3131
#elif defined(_WIN32) // building for windows
3232

33-
#define _WIN32_WINNT 0x0600
33+
#define _WIN32_WINNT 0x0600 // minimum target of Windows Vista
34+
#define WIN32_LEAN_AND_MEAN
3435
#include <windows.h>
3536

3637
#define CMARK_DEFINE_ONCE(NAME) static INIT_ONCE NAME##_once = INIT_ONCE_STATIC_INIT;

0 commit comments

Comments
 (0)