# New Ticket Created by Paul Cochrane # Please include the string: [perl #46425] # in the subject line of all future correspondence about this issue. # <URL: http://rt.perl.org/rt3/Ticket/Display.html?id=46425 >
Hi all, Compiling Parrot with -ansi (in gcc) means that it will barf on the 'inline' keyword which was only added in C99, but we're trying to target C89. Anyway, the attached patch detects if we have a C99 compiler and if so uses the inline keyword. I'm aware that there is a config check for this as well, so I'm not sure if what I've done is the correct way of going about things. If one really wants to use 'inline' the -std=c99 compiler option needs to be used so that __STDC_VERSION__ is defined. BTW: compiling with -ansi now works fine with the patch. Is stricter really better? It *theoretically* should make Parrot more portable. Comments most definitely welcome! If noone complains beforehand, I'll commit the change after the release on Tues/Wed. Paul
ansi_inline.patch
Description: Binary data