]> git.sesse.net Git - rdpsrv/blob - Xserver/include/Xfuncproto.h
Import X server from vnc-3.3.7.
[rdpsrv] / Xserver / include / Xfuncproto.h
1 /* $XConsortium: Xfuncproto.h,v 1.9 95/06/08 23:20:39 gildea Exp $ */
2 /* 
3  * 
4 Copyright (c) 1989, 1991  X Consortium
5
6 Permission is hereby granted, free of charge, to any person obtaining a copy
7 of this software and associated documentation files (the "Software"), to deal
8 in the Software without restriction, including without limitation the rights
9 to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10 copies of the Software, and to permit persons to whom the Software is
11 furnished to do so, subject to the following conditions:
12
13 The above copyright notice and this permission notice shall be included in
14 all copies or substantial portions of the Software.
15
16 THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17 IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18 FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
19 X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20 AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21 CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
23 Except as contained in this notice, the name of the X Consortium shall not be
24 used in advertising or otherwise to promote the sale, use or other dealings
25 in this Software without prior written authorization from the X Consortium.
26  *
27  */
28
29 /* Definitions to make function prototypes manageable */
30
31 #ifndef _XFUNCPROTO_H_
32 #define _XFUNCPROTO_H_
33
34 #ifndef NeedFunctionPrototypes
35 #if defined(FUNCPROTO) || defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus)
36 #define NeedFunctionPrototypes 1
37 #else
38 #define NeedFunctionPrototypes 0
39 #endif
40 #endif /* NeedFunctionPrototypes */
41
42 #ifndef NeedVarargsPrototypes
43 #if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) || (FUNCPROTO&2)
44 #define NeedVarargsPrototypes 1
45 #else
46 #define NeedVarargsPrototypes 0
47 #endif
48 #endif /* NeedVarargsPrototypes */
49
50 #if NeedFunctionPrototypes
51
52 #ifndef NeedNestedPrototypes
53 #if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) || (FUNCPROTO&8)
54 #define NeedNestedPrototypes 1
55 #else
56 #define NeedNestedPrototypes 0
57 #endif
58 #endif /* NeedNestedPrototypes */
59
60 #ifndef _Xconst
61 #if defined(__STDC__) || defined(__cplusplus) || defined(c_plusplus) || (FUNCPROTO&4)
62 #define _Xconst const
63 #else
64 #define _Xconst
65 #endif
66 #endif /* _Xconst */
67
68 #ifndef NeedWidePrototypes
69 #ifdef NARROWPROTO
70 #define NeedWidePrototypes 0
71 #else
72 #define NeedWidePrototypes 1            /* default to make interropt. easier */
73 #endif
74 #endif /* NeedWidePrototypes */
75
76 #endif /* NeedFunctionPrototypes */
77
78 #ifndef _XFUNCPROTOBEGIN
79 #ifdef __cplusplus                      /* for C++ V2.0 */
80 #define _XFUNCPROTOBEGIN extern "C" {   /* do not leave open across includes */
81 #define _XFUNCPROTOEND }
82 #else
83 #define _XFUNCPROTOBEGIN
84 #define _XFUNCPROTOEND
85 #endif
86 #endif /* _XFUNCPROTOBEGIN */
87
88 #endif /* _XFUNCPROTO_H_ */