summaryrefslogtreecommitdiffstats
path: root/meta/packages/xorg-lib/xorg-headers-native/X11/Xtos.h
diff options
context:
space:
mode:
Diffstat (limited to 'meta/packages/xorg-lib/xorg-headers-native/X11/Xtos.h')
-rw-r--r--meta/packages/xorg-lib/xorg-headers-native/X11/Xtos.h77
1 files changed, 77 insertions, 0 deletions
diff --git a/meta/packages/xorg-lib/xorg-headers-native/X11/Xtos.h b/meta/packages/xorg-lib/xorg-headers-native/X11/Xtos.h
new file mode 100644
index 0000000000..013b2416ce
--- /dev/null
+++ b/meta/packages/xorg-lib/xorg-headers-native/X11/Xtos.h
@@ -0,0 +1,77 @@
1/*
2* $Xorg: Xtos.h,v 1.4 2001/02/09 02:03:59 xorgcvs Exp $
3*/
4
5/***********************************************************
6
7Copyright 1987, 1988, 1994, 1998 The Open Group
8
9Permission to use, copy, modify, distribute, and sell this software and its
10documentation for any purpose is hereby granted without fee, provided that
11the above copyright notice appear in all copies and that both that
12copyright notice and this permission notice appear in supporting
13documentation.
14
15The above copyright notice and this permission notice shall be included in
16all copies or substantial portions of the Software.
17
18THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
22AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
23CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
24
25Except as contained in this notice, the name of The Open Group shall not be
26used in advertising or otherwise to promote the sale, use or other dealings
27in this Software without prior written authorization from The Open Group.
28
29
30Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts.
31
32 All Rights Reserved
33
34Permission to use, copy, modify, and distribute this software and its
35documentation for any purpose and without fee is hereby granted,
36provided that the above copyright notice appear in all copies and that
37both that copyright notice and this permission notice appear in
38supporting documentation, and that the name of Digital not be
39used in advertising or publicity pertaining to distribution of the
40software without specific, written prior permission.
41
42DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
43ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
44DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
45ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
46WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
47ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
48SOFTWARE.
49
50******************************************************************/
51/* $XFree86: xc/lib/Xt/Xtos.h,v 3.12tsi Exp $ */
52
53#ifndef _Xtos_h
54#define _Xtos_h
55
56#define ALLOCATE_LOCAL_FALLBACK(_size) XtMalloc((unsigned long)(_size))
57#define DEALLOCATE_LOCAL_FALLBACK(_ptr) XtFree((XtPointer)(_ptr))
58#include <X11/Xalloca.h>
59
60#ifdef CRAY
61#define WORD64
62#endif
63
64#if defined (_LP64) || \
65 defined(__alpha) || defined(__alpha__) || \
66 defined(__ia64__) || defined(ia64) || \
67 defined(__sparc64__) || \
68 defined(__s390x__) || \
69 (defined(__hppa__) && defined(__LP64__)) || \
70 defined(__amd64__) || defined(amd64) || \
71 defined(__powerpc64__) || \
72 (defined(sgi) && (_MIPS_SZLONG == 64))
73#define LONG64
74#endif
75
76#endif /* _Xtos_h */
77/* DON'T ADD STUFF AFTER THIS #endif */