summaryrefslogtreecommitdiff
path: root/plan9
diff options
context:
space:
mode:
authorAndy Dougherty <doughera@lafayette.edu>2010-09-23 12:06:10 -0400
committerAndy Dougherty <doughera@lafayette.edu>2010-09-23 12:06:10 -0400
commit3db6ecf2ab3559908674348221dcc60f4fcb6af9 (patch)
tree2dfb1e7fb29e94aaba26696b0af1dee4e8012cdf /plan9
parent55ce5d5f72ff3e217c8808026353432ca1a7deb0 (diff)
downloadperl-3db6ecf2ab3559908674348221dcc60f4fcb6af9.tar.gz
Add default safe guesses for static_inline to plan9 files.
Diffstat (limited to 'plan9')
-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";