commit | eb31b2a876621ae0b762507f6ba84794eeec9482 | [log] [tgz] |
---|---|---|
author | Yorhel <git@yorhel.nl> | Wed Feb 26 09:03:57 2014 +0100 |
committer | Yorhel <git@yorhel.nl> | Wed Feb 26 09:03:57 2014 +0100 |
tree | 96b3fa8956395e13a358f46634532d7810d50841 | |
parent | 372cecb9a0f144b1846f7296fdee8d09b7cdae98 [diff] |
define 'inline' for MSVC compilers
diff --git a/yxml.h b/yxml.h index 97565ec..307ea6b 100644 --- a/yxml.h +++ b/yxml.h
@@ -26,6 +26,10 @@ #include <stdint.h> #include <stddef.h> +#if defined(_MSC_VER) && !defined(__cplusplus) && !defined(inline) +#define inline __inline +#endif + /* Full API documentation for this library can be found in the "yxml.pod" file * in the yxml git repository, or online at http://dev.yorhel.nl/yxml/man */