summaryrefslogtreecommitdiff
path: root/handy.h
diff options
context:
space:
mode:
Diffstat (limited to 'handy.h')
-rw-r--r--handy.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/handy.h b/handy.h
index b75eafb53f..21ef4917bb 100644
--- a/handy.h
+++ b/handy.h
@@ -116,6 +116,13 @@ Null SV pointer. (No longer available when C<PERL_CORE> is defined.)
#define cBOOL(cbool) ((bool)!!(cbool))
+/* Inline functions - welcome to the 1980s */
+#if defined(_MSC_VER)
+# define PINLINE static _inline
+#else
+# define PINLINE static inline
+#endif
+
/* Try to figure out __func__ or __FUNCTION__ equivalent, if any.
* XXX Should really be a Configure probe, with HAS__FUNCTION__
* and FUNCTION__ as results.