summaryrefslogtreecommitdiff
path: root/src/config.h.in
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2015-08-10 20:19:09 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2015-08-10 20:19:09 -0700
commit735098e097ad62bdc4b1121c6c0c983eb7483485 (patch)
treea858fedc30e6149ed430784942413a2b06741ec9 /src/config.h.in
parenta541e39f69cfa75422fbe70c59c2ac40fbdbe1d7 (diff)
parentce0e58469f7c4abf3f51bde6d3298215d6ef99d1 (diff)
Merge pull request #76 from kainjow/msvc-warnings
Fix some MSVC 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