Add default safe guesses for static_inline to plan9 files.
authorAndy Dougherty <doughera@lafayette.edu>
Thu, 23 Sep 2010 16:06:10 +0000 (12:06 -0400)
committerAndy Dougherty <doughera@lafayette.edu>
Thu, 23 Sep 2010 16:06:10 +0000 (12:06 -0400)
plan9/config.plan9
plan9/genconfig.pl

index d322ce5..bc25e1b 100644 (file)
 #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.
index 30f4af7..334c6b7 100644 (file)
@@ -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";