Disable GCC's __attribute__ extension when we're not using GCC.
This commit is contained in:
parent
c2a2e6a126
commit
7feeba74fd
@ -31,7 +31,7 @@
|
||||
* SUCH DAMAGE.
|
||||
*
|
||||
* from: @(#)cdefs.h 7.6 (Berkeley) 5/4/91
|
||||
* $Id: cdefs.h,v 1.5 1993/09/23 23:44:09 cgd Exp $
|
||||
* $Id: cdefs.h,v 1.6 1993/12/03 20:39:35 jtc Exp $
|
||||
*/
|
||||
|
||||
#ifndef _SYS_CDEFS_H_
|
||||
@ -81,6 +81,15 @@
|
||||
#endif /* !__GNUC__ */
|
||||
#endif /* !(__STDC__ || __cplusplus) */
|
||||
|
||||
|
||||
/*
|
||||
* Disable GCC's __atrribute__ extension when we're not using GCC.
|
||||
*/
|
||||
#if !defined(__GNUC__)
|
||||
#define __attribute__(x)
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* GCC has extensions for declaring functions as `pure' (always returns
|
||||
* the same value given the same inputs, i.e., has no external state and
|
||||
|
Loading…
Reference in New Issue
Block a user