On 7/06/2014 4:02 AM, Dr. Stephen Henson wrote: > On Fri, Jun 06, 2014, Mike Bland wrote: > >> __func__ is defined in C99. What version of the SGI C compiler are you >> using? According to the following, as of version 7.4, the -c99 flag >> should enable this to compile: >> >> http://www.sgi.com/products/software/irix/tools/c.html >> > Note that VC++ under Windows doesn't support __func__ either. Well at least > the versions I tested didn't.
Adding in C99 dependencies in the code will run into a lot of non-C99 environments which still are being actively used. I think it is time to either decide that C99 is now a requirement (and there are features in C99 that would be nice to be able to use) or to decide that code which uses those features shouldn't go in - i.e. don't use those features so that platforms which don't support C99 are still supportable. Either approach leads to things breaking for at least some users ... In this particular case (the ssl/heartbeat_test.c) the use of __func__ really isn't critical and can easily be changed to not be a C99 __func__ dependency and pass in a test name in the 9 locations rather than the function name. That would fix the couple of platforms already noted that had issues. Tim. ______________________________________________________________________ OpenSSL Project http://www.openssl.org Development Mailing List [email protected] Automated List Manager [email protected]
