summaryrefslogtreecommitdiff
path: root/src/config.h.in
diff options
context:
space:
mode:
authorKevin Wojniak <kainjow@kainjow.com>2015-08-10 09:45:59 -0700
committerKevin Wojniak <kainjow@kainjow.com>2015-08-10 09:46:49 -0700
commit7baf9297f4f2e368c7c91ac76e16e88902987ec6 (patch)
treecaed64a23fd6b35d8e8d1070575e751b6f033b90 /src/config.h.in
parenta541e39f69cfa75422fbe70c59c2ac40fbdbe1d7 (diff)
Fix MSVC inline errors when cmark is included in other sources that don't have the same set of disabled warnings
Diffstat (limited to 'src/config.h.in')
-rw-r--r--src/config.h.in8
1 files changed, 8 insertions, 0 deletions
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