mirror of
https://github.com/opnsense/src.git
synced 2026-04-15 14:29:58 -04:00
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:
parent
f16d1c7c6a
commit
85a4207bf1
2 changed files with 3 additions and 10 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue