summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2014-02-26 09:03:57 +0100
committerYorhel <git@yorhel.nl>2014-02-26 09:03:57 +0100
commiteb31b2a876621ae0b762507f6ba84794eeec9482 (patch)
tree96b3fa8956395e13a358f46634532d7810d50841
parent372cecb9a0f144b1846f7296fdee8d09b7cdae98 (diff)
define 'inline' for MSVC compilers
-rw-r--r--yxml.h4
1 files changed, 4 insertions, 0 deletions
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 */