aboutsummaryrefslogtreecommitdiff
path: root/include/flatcc/portable/pinline.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/flatcc/portable/pinline.h')
-rw-r--r--include/flatcc/portable/pinline.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/include/flatcc/portable/pinline.h b/include/flatcc/portable/pinline.h
new file mode 100644
index 0000000..f4f8f27
--- /dev/null
+++ b/include/flatcc/portable/pinline.h
@@ -0,0 +1,19 @@
+#ifndef PINLINE_H
+#define PINLINE_H
+
+#ifndef __cplusplus
+
+#if (defined(__STDC__) && __STDC__ && defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L)
+/* C99 or newer */
+#elif _MSC_VER >= 1500 /* MSVC 9 or newer */
+#undef inline
+#define inline __inline
+#elif __GNUC__ >= 3 /* GCC 3 or newer */
+#define inline __inline
+#else /* Unknown or ancient */
+#define inline
+#endif
+
+#endif /* __cplusplus */
+
+#endif /* PINLINE_H */