On Thu, 8 Jul 2010, Craig A. Berry wrote: > On Thu, Jul 8, 2010 at 9:42 AM, Marvin Humphrey <marvin@rectangular.com> wrote: > > On Thu, Jul 08, 2010 at 10:38:07AM -0400, Andy Dougherty wrote: > >> Then, we'll still have to figure out what to put in for the Windows and > >> VMS folks, since they don't use Configure. > > > > MSVC: > > > > http://msdn.microsoft.com/en-us/library/z8y1yy88.aspx > > HP C for OpenVMS: > > <http://h71000.www7.hp.com/commercial/c/docs/6180profile_004.html#storage_class_mod_sec> > > As usual, there are various options depending on which knobs you turn, > such as gcc-like behavior or c99-like behavior for the interaction of > inline and extern. But for the intended uses in Perl I'm pretty sure > this is all we'll need: Yes, this first pass is going for the maximally portable 'static inline' which tries to avoid all the external linkage issues that differ between "older" gcc and c99. I've tested it back to gcc-3.4 on Solaris, and it did what we wanted. > --- configure.com;-0 2010-04-23 18:35:11 -0500 > +++ configure.com 2010-07-08 10:27:49 -0500 > @@ -6203,4 +6203,5 @@ $ WC "d_statfs_f_flags='undef'" > $ WC "d_statfs_s='undef'" > $ WC "d_statfsflags='undef'" > +$ WC "d_static_inline='define'" > $ WC "d_stdio_cnt_lval='" + d_stdio_cnt_lval + "'" > $ WC "d_stdio_ptr_lval='" + d_stdio_ptr_lval + "'" > [end] > > but I should probably dig a little deeper and see if there are older > compilers we could otherwise support that wouldn't have this feature. Thanks for the feedback. -- Andy Dougherty doughera@lafayette.eduThread Previous | Thread Next