1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

Add a hack to get around the fact that egcs 1.1.2 (which I'm using to build

my powerpc kernels on NetBSD/macppc 1.5) doesn't know of the __func__ macro.
This commit is contained in:
Benno Rice 2001-10-15 13:30:04 +00:00
parent f3ca814471
commit 569b264f40
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=84978

View File

@ -41,6 +41,15 @@
#include <machine/atomic.h>
#include <machine/cpufunc.h>
/*
* Hack around due to egcs-1.1.2 not knowing what __func__ is.
*/
#ifdef __GNUC__
#if __GNUC__ == 2 && __GNUC_MINOR__ == 91 /* egcs 1.1.2 */
#define __func__ __FUNCTION__
#endif
#endif
/*
* Trace classes
*/