svn rev #25200: trunk/src/lib/gssapi/generic/

Greg Hudson ghudson at MIT.EDU
Tue Sep 20 12:52:52 EDT 2011


On Tue, 2011-09-20 at 00:10 -0400, Ken Raeburn wrote:
> Is this a Windows compatibility thing?  __func__ is the right
> direction for future c99 compatibility; __FUNCTION__ is non-standard
> AFAIK.

I didn't object to this change because (1) we use __FUNCTION__ all over
the code base already, and (2) it's in a debug block.  But yes.
__FUNCTION__ is recognized by gcc but not Solaris cc (as of Sun C 5.9).

The right thing to do is probably to convert all uses of __FUNCTION__ in
to __func__ and "#define __func__ __FUNCTION__" in k5-platform.h if
_WIN32 is defined.  If MSVC ever implements __func__, or if Cygwin/MinGW
is used to build the code base on Windows, then the define becomes
vestigial but harmless.





More information about the krbdev mailing list