1 /* $XConsortium: Xfuncproto.h,v 1.7 91/05/13 20:49:21 rws Exp $ */
3 * Copyright 1989, 1991 by the Massachusetts Institute of Technology
5 * Permission to use, copy, modify, and distribute this software and its
6 * documentation for any purpose and without fee is hereby granted, provided
7 * that the above copyright notice appear in all copies and that both that
8 * copyright notice and this permission notice appear in supporting
9 * documentation, and that the name of M.I.T. not be used in advertising
10 * or publicity pertaining to distribution of the software without specific,
11 * written prior permission. M.I.T. makes no representations about the
12 * suitability of this software for any purpose. It is provided "as is"
13 * without express or implied warranty.
17 /* Definitions to make function prototypes manageable */
19 #ifndef _XFUNCPROTO_H_
20 #define _XFUNCPROTO_H_
22 #ifndef NeedFunctionPrototypes
23 #define NeedFunctionPrototypes 1
24 #endif /* NeedFunctionPrototypes */
26 #ifndef NeedVarargsPrototypes
27 #define NeedVarargsPrototypes 0
28 #endif /* NeedVarargsPrototypes */
30 #if NeedFunctionPrototypes
32 #ifndef NeedNestedPrototypes
33 #define NeedNestedPrototypes 1
34 #endif /* NeedNestedPrototypes */
40 #ifndef NeedWidePrototypes
42 #define NeedWidePrototypes 0
44 #define NeedWidePrototypes 1 /* default to make interropt. easier */
46 #endif /* NeedWidePrototypes */
48 #endif /* NeedFunctionPrototypes */
51 #define _XFUNCPROTOBEGIN extern "C" {
52 #define _XFUNCPROTOEND }
55 #ifndef _XFUNCPROTOBEGIN
56 #define _XFUNCPROTOBEGIN
57 #define _XFUNCPROTOEND
58 #endif /* _XFUNCPROTOBEGIN */
60 #endif /* _XFUNCPROTO_H_ */