cdefs.h revision 1.4 1 1.4 jonathan /* $NetBSD: cdefs.h,v 1.4 1995/12/15 01:17:04 jonathan Exp $ */
2 1.1 jtc
3 1.1 jtc /*
4 1.3 mellon * Copyright (c) 1995 Carnegie-Mellon University.
5 1.3 mellon * All rights reserved.
6 1.3 mellon *
7 1.3 mellon * Author: Chris G. Demetriou
8 1.3 mellon *
9 1.3 mellon * Permission to use, copy, modify and distribute this software and
10 1.3 mellon * its documentation is hereby granted, provided that both the copyright
11 1.3 mellon * notice and this permission notice appear in all copies of the
12 1.3 mellon * software, derivative works or modified versions, and any portions
13 1.3 mellon * thereof, and that both notices appear in supporting documentation.
14 1.3 mellon *
15 1.3 mellon * CARNEGIE MELLON ALLOWS FREE USE OF THIS SOFTWARE IN ITS "AS IS"
16 1.3 mellon * CONDITION. CARNEGIE MELLON DISCLAIMS ANY LIABILITY OF ANY KIND
17 1.3 mellon * FOR ANY DAMAGES WHATSOEVER RESULTING FROM THE USE OF THIS SOFTWARE.
18 1.3 mellon *
19 1.3 mellon * Carnegie Mellon requests users of this software to return to
20 1.3 mellon *
21 1.3 mellon * Software Distribution Coordinator or Software.Distribution (at) CS.CMU.EDU
22 1.3 mellon * School of Computer Science
23 1.3 mellon * Carnegie Mellon University
24 1.3 mellon * Pittsburgh PA 15213-3890
25 1.3 mellon *
26 1.3 mellon * any improvements or extensions that they make and grant Carnegie the
27 1.3 mellon * rights to redistribute these changes.
28 1.1 jtc */
29 1.1 jtc
30 1.3 mellon #ifndef _MACHINE_CDEFS_H_
31 1.1 jtc #define _MACHINE_CDEFS_H_
32 1.1 jtc
33 1.3 mellon #define _C_LABEL(x) _STRING(x)
34 1.1 jtc
35 1.3 mellon #define __indr_references(sym,msg) /* nothing */
36 1.4 jonathan
37 1.4 jonathan #if defined __GNUC__ && defined __STDC__
38 1.4 jonathan #define __warn_references(sym, msg) \
39 1.4 jonathan static const char __evoke_link_warning_##sym[] \
40 1.4 jonathan __attribute__ ((section (".gnu.warning." #sym))) = msg;
41 1.4 jonathan #else
42 1.3 mellon #define __warn_references(sym,msg) /* nothing */
43 1.4 jonathan #endif
44 1.1 jtc
45 1.1 jtc #endif /* !_MACHINE_CDEFS_H_ */
46