VirtualBox

source: vbox/trunk/src/VBox/Additions/x11/x11include/1.4/X11/Xfuncproto.h@ 7517

最後變更 在這個檔案從7517是 6202,由 vboxsync 提交於 17 年 前

re-export x11

  • 屬性 svn:eol-style 設為 native
檔案大小: 3.4 KB
 
1/* Xfuncproto.h. Generated by configure. */
2/* $Xorg: Xfuncproto.h,v 1.4 2001/02/09 02:03:22 xorgcvs Exp $ */
3/*
4 *
5Copyright 1989, 1991, 1998 The Open Group
6
7Permission to use, copy, modify, distribute, and sell this software and its
8documentation for any purpose is hereby granted without fee, provided that
9the above copyright notice appear in all copies and that both that
10copyright notice and this permission notice appear in supporting
11documentation.
12
13The above copyright notice and this permission notice shall be included in
14all copies or substantial portions of the Software.
15
16THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
20AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
21CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
22
23Except as contained in this notice, the name of The Open Group shall not be
24used in advertising or otherwise to promote the sale, use or other dealings
25in this Software without prior written authorization from The Open Group.
26 *
27 */
28/* $XFree86: xc/include/Xfuncproto.h,v 3.4 2001/12/14 19:53:25 dawes Exp $ */
29
30/* Definitions to make function prototypes manageable */
31
32#ifndef _XFUNCPROTO_H_
33#define _XFUNCPROTO_H_
34
35#ifndef NeedFunctionPrototypes
36#define NeedFunctionPrototypes 1
37#endif /* NeedFunctionPrototypes */
38
39#ifndef NeedVarargsPrototypes
40#define NeedVarargsPrototypes 1
41#endif /* NeedVarargsPrototypes */
42
43#if NeedFunctionPrototypes
44
45#ifndef NeedNestedPrototypes
46#define NeedNestedPrototypes 1
47#endif /* NeedNestedPrototypes */
48
49#ifndef _Xconst
50#define _Xconst const
51#endif /* _Xconst */
52
53/* Function prototype configuration (see configure for more info) */
54#ifndef NARROWPROTO
55#define NARROWPROTO
56#endif
57#ifndef FUNCPROTO
58#define FUNCPROTO 15
59#endif
60
61#ifndef NeedWidePrototypes
62#ifdef NARROWPROTO
63#define NeedWidePrototypes 0
64#else
65#define NeedWidePrototypes 1 /* default to make interropt. easier */
66#endif
67#endif /* NeedWidePrototypes */
68
69#endif /* NeedFunctionPrototypes */
70
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 }
75#else
76#define _XFUNCPROTOBEGIN
77#define _XFUNCPROTOEND
78#endif
79#endif /* _XFUNCPROTOBEGIN */
80
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)))
84#else
85# define _X_SENTINEL(x)
86# define _X_ATTRIBUTE_PRINTF(x,y)
87#endif /* GNUC >= 4 */
88
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 */
98# define _X_EXPORT
99# define _X_HIDDEN
100# define _X_INTERNAL
101#endif
102
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
107#endif
108
109#endif /* _XFUNCPROTO_H_ */
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette