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 */