summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plan9/config.plan921
-rw-r--r--plan9/genconfig.pl2
2 files changed, 23 insertions, 0 deletions
diff --git a/plan9/config.plan9 b/plan9/config.plan9
index d322ce5c47..bc25e1b5da 100644
--- a/plan9/config.plan9
+++ b/plan9/config.plan9
@@ -2367,6 +2367,27 @@
#define Siglongjmp(buf,retval) longjmp((buf),(retval))
#endif
+/* HAS_STATIC_INLINE:
+ * This symbol, if defined, indicates that the C compiler supports
+ * C99-style static inline. That is, the function can't be called
+ * from another translation unit.
+ */
+/* PERL_STATIC_INLINE:
+ * This symbol gives the best-guess incantation to use for static
+ * inline functions. If HAS_STATIC_INLINE is defined, this will
+ * give C99-style inline. If HAS_STATIC_INLINE is not defined,
+ * this will give a plain 'static'. It will always be defined
+ * to something that gives static linkage.
+ * Possibilities include
+ * static inline (c99)
+ * static __inline__ (gcc -ansi)
+ * static __inline (MSVC)
+ * static _inline (older MSVC)
+ * static (c89 compilers)
+ */
+/*#define HAS_STATIC_INLINE / **/
+#define PERL_STATIC_INLINE static /**/
+
/* HAS_SOCKET:
* This symbol, if defined, indicates that the BSD socket interface is
* supported.
diff --git a/plan9/genconfig.pl b/plan9/genconfig.pl
index 30f4af74a1..334c6b7ad0 100644
--- a/plan9/genconfig.pl
+++ b/plan9/genconfig.pl
@@ -127,6 +127,8 @@ print OUT "d_attribute_unused='undef'\n";
print OUT "d_attribute_warn_unused_result='undef'\n";
print OUT "d_socket='define'\n";
print OUT "d_sockpair='define'\n";
+print OUT "d_static_inline='undef'\n";
+print OUT "perl_static_inline='static'\n";
print OUT "d_sigsetjmp='define'\n";
print OUT "sigjmp_buf='sigjmp_buf'\n";
print OUT "sigsetjmp='sigsetjmp(buf,save_mask)'\n";