diff options
author | John MacFarlane <jgm@berkeley.edu> | 2015-08-10 20:19:09 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2015-08-10 20:19:09 -0700 |
commit | 735098e097ad62bdc4b1121c6c0c983eb7483485 (patch) | |
tree | a858fedc30e6149ed430784942413a2b06741ec9 /src/config.h.in | |
parent | a541e39f69cfa75422fbe70c59c2ac40fbdbe1d7 (diff) | |
parent | ce0e58469f7c4abf3f51bde6d3298215d6ef99d1 (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.in | 8 |
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 |