Addendum to netchild's C compiler abstraction mega-patch which somehow

have been forgotten in my previous commit.

Submitted by:	netchild
This commit is contained in:
Joerg Wunsch 2005-03-04 21:26:07 +00:00
parent f16d1c7c6a
commit 85a4207bf1
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=143140
2 changed files with 3 additions and 10 deletions

View File

@ -30,7 +30,9 @@
#ifndef _MACHINE_LIMITS_H_
#define _MACHINE_LIMITS_H_
#if __GNUC__
#include <sys/cdefs.h>
#if __CC_SUPPORTS_WARNING
#warning "machine/limits.h is deprecated. Include sys/limits.h instead."
#endif

View File

@ -36,15 +36,6 @@
#ifndef _SYS_KTR_H_
#define _SYS_KTR_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
*/