1
/* Xfuncproto.h. Generated by configure. */
2
/* $Xorg: Xfuncproto.h,v 1.4 2001/02/09 02:03:22 xorgcvs Exp $ */
5
Copyright 1989, 1991, 1998 The Open Group
7
Permission to use, copy, modify, distribute, and sell this software and its
8
documentation for any purpose is hereby granted without fee, provided that
9
the above copyright notice appear in all copies and that both that
10
copyright notice and this permission notice appear in supporting
13
The above copyright notice and this permission notice shall be included in
14
all copies or substantial portions of the Software.
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
OPEN GROUP 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.
23
Except as contained in this notice, the name of The Open Group 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 Open Group.
28
/* $XFree86: xc/include/Xfuncproto.h,v 3.4 2001/12/14 19:53:25 dawes Exp $ */
30
/* Definitions to make function prototypes manageable */
32
#ifndef _XFUNCPROTO_H_
33
#define _XFUNCPROTO_H_
35
#ifndef NeedFunctionPrototypes
36
#define NeedFunctionPrototypes 1
37
#endif /* NeedFunctionPrototypes */
39
#ifndef NeedVarargsPrototypes
40
#define NeedVarargsPrototypes 1
41
#endif /* NeedVarargsPrototypes */
43
#if NeedFunctionPrototypes
45
#ifndef NeedNestedPrototypes
46
#define NeedNestedPrototypes 1
47
#endif /* NeedNestedPrototypes */
53
/* Function prototype configuration (see configure for more info) */
61
#ifndef NeedWidePrototypes
63
#define NeedWidePrototypes 0
65
#define NeedWidePrototypes 1 /* default to make interropt. easier */
67
#endif /* NeedWidePrototypes */
69
#endif /* NeedFunctionPrototypes */
71
#ifndef _XFUNCPROTOBEGIN
72
#if defined(__cplusplus) || defined(c_plusplus) /* for C++ V2.0 */
73
#define _XFUNCPROTOBEGIN extern "C" { /* do not leave open across includes */
74
#define _XFUNCPROTOEND }
76
#define _XFUNCPROTOBEGIN
77
#define _XFUNCPROTOEND
79
#endif /* _XFUNCPROTOBEGIN */
81
#if defined(__GNUC__) && (__GNUC__ >= 4)
82
# define _X_SENTINEL(x) __attribute__ ((__sentinel__(x)))
83
# define _X_ATTRIBUTE_PRINTF(x,y) __attribute__((__format__(__printf__,x,y)))
85
# define _X_SENTINEL(x)
86
# define _X_ATTRIBUTE_PRINTF(x,y)
87
#endif /* GNUC >= 4 */
89
#if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 303)
90
# define _X_EXPORT __attribute__((visibility("default")))
91
# define _X_HIDDEN __attribute__((visibility("hidden")))
92
# define _X_INTERNAL __attribute__((visibility("internal")))
93
#elif defined(__SUNPRO_C) && (__SUNPRO_C >= 0x550)
94
# define _X_EXPORT __global
95
# define _X_HIDDEN __hidden
96
# define _X_INTERNAL __hidden
97
#else /* not gcc >= 3.3 and not Sun Studio >= 8 */
103
#if defined(__GNUC__) && ((__GNUC__ * 100 + __GNUC_MINOR__) >= 301)
104
# define _X_DEPRECATED __attribute__((deprecated))
105
#else /* not gcc >= 3.1 */
106
# define _X_DEPRECATED
109
#endif /* _XFUNCPROTO_H_ */