From 7baf9297f4f2e368c7c91ac76e16e88902987ec6 Mon Sep 17 00:00:00 2001 From: Kevin Wojniak Date: Mon, 10 Aug 2015 09:45:59 -0700 Subject: Fix MSVC inline errors when cmark is included in other sources that don't have the same set of disabled warnings --- src/config.h.in | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/config.h.in') diff --git a/src/config.h.in b/src/config.h.in index 5294bc9..a392111 100644 --- a/src/config.h.in +++ b/src/config.h.in @@ -15,3 +15,11 @@ #else #define CMARK_ATTRIBUTE(list) #endif + +#ifndef CMARK_INLINE + #ifdef _MSC_VER + #define CMARK_INLINE __inline + #else + #define CMARK_INLINE static inline + #endif +#endif -- cgit v1.2.3