Convert uses of XKeycodeToKeysym (deprecated) to XkbKeycodeToKeysym
[oweals/cde.git] / cde / include / EUSCompat.h
1 /*
2  * CDE - Common Desktop Environment
3  *
4  * Copyright (c) 1993-2012, The Open Group. All rights reserved.
5  *
6  * These libraries and programs are free software; you can
7  * redistribute them and/or modify them under the terms of the GNU
8  * Lesser General Public License as published by the Free Software
9  * Foundation; either version 2 of the License, or (at your option)
10  * any later version.
11  *
12  * These libraries and programs are distributed in the hope that
13  * they will be useful, but WITHOUT ANY WARRANTY; without even the
14  * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15  * PURPOSE. See the GNU Lesser General Public License for more
16  * details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with these libraries and programs; if not, write
20  * to the Free Software Foundation, Inc., 51 Franklin Street, Fifth
21  * Floor, Boston, MA 02110-1301 USA
22  */
23 /*
24  *+SNOTICE
25  *
26  *      $TOG: EUSCompat.h /main/4 1998/04/03 17:11:57 mgreess $
27  *
28  *      RESTRICTED CONFIDENTIAL INFORMATION:
29  *      
30  *      The information in this document is subject to special
31  *      restrictions in a confidential disclosure agreement bertween
32  *      HP, IBM, Sun, USL, SCO and Univel.  Do not distribute this
33  *      document outside HP, IBM, Sun, USL, SCO, or Univel wihtout
34  *      Sun's specific written approval.  This documment and all copies
35  *      and derivative works thereof must be returned or destroyed at
36  *      Sun's request.
37  *
38  *      Copyright 1993 Sun Microsystems, Inc.  All rights reserved.
39  *
40  *+ENOTICE
41  */
42
43 #ifndef _EUSCOMPAT_H
44 #define _EUSCOMPAT_H
45
46 #ifdef __cplusplus
47 extern "C" {
48 #endif
49
50
51 /*
52 ** System V R4 based systems define the stuff we need in
53 ** sys/types.h. Include that and then we are done.
54 */
55 #if defined(HPUX) || defined(__linux__) || defined(SunOS)
56 #include <sys/types.h>
57 #endif
58
59 #if defined(sun) && defined(_XOPEN_SOURCE)
60 #ifndef B_TRUE
61 #define B_TRUE _B_TRUE
62 #endif
63 #ifndef B_FALSE
64 #define B_FALSE _B_FALSE
65 #endif
66 #endif   /* sun && _XOPEN_SOURCE */
67
68 /*
69 ** HPUX defines most of what we need, if we set the right
70 ** include options before including the system files.
71 */
72 #if defined(HPUX)
73
74 #ifndef _INCLUDE_POSIX_SOURCE
75 #define _INCLUDE_POSIX_SOURCE
76 #endif
77
78 #ifndef _INCLUDE_XOPEN_SOURCE
79 #define _INCLUDE_XOPEN_SOURCE
80 #endif
81
82 #ifndef _INCLUDE_AES_SOURCE
83 #define _INCLUDE_AES_SOURCE
84 #endif
85
86 #ifndef _INCLUDE_HPUX_SOURCE
87 #define _INCLUDE_HPUX_SOURCE
88 #endif
89
90 #ifndef hpV4
91 typedef unsigned long ulong_t;
92 #endif /* hpV4 */
93 typedef unsigned char uchar_t;
94 typedef enum {B_FALSE, B_TRUE} boolean_t;
95
96 #define _SC_PAGESIZE    _SC_PAGE_SIZE
97
98 #ifndef MAXPATHLEN
99 #include <sys/param.h>
100 #endif
101
102 #define MAXNAMELEN      256
103
104 #endif  /* HPUX */
105
106 #if defined(__linux__) || defined(CSRG_BASED)
107 typedef enum {B_FALSE, B_TRUE} boolean_t;
108 #define MAXNAMELEN              256
109 #endif
110
111
112 /*
113 ** AIX, like HPUX defines most of what we need.
114 */
115 #if defined(AIX)
116
117 #ifndef KERNEL
118 #define KERNEL
119 #endif
120
121 #ifndef _BSD_INCLUDES
122 #define _BSD_INCLUDES
123 #endif
124
125 #include <sys/types.h>
126
127 #define _SC_PAGESIZE    _SC_PAGE_SIZE
128 #define vfork           fork
129
130 #ifndef MAXPATHLEN
131 #include <sys/param.h>
132 #endif
133
134 #define MAXNAMELEN      256
135
136 #ifndef _POWER
137 typedef enum {B_FALSE, B_TRUE} boolean_t;
138 #else /* _POWER */
139 #ifndef B_FALSE
140 #define B_FALSE 0
141 #endif
142 #ifndef B_TRUE
143 #define B_TRUE 1
144 #endif
145 #endif /* _POWER */
146
147 #undef BIG_ENDIAN
148
149 #endif /* AIX */
150
151 #ifdef __cplusplus
152 }
153 #endif
154
155
156 #endif