[6916] Fixed typos in spell checking code.
[getmangos.git] / dep / ACE_wrappers / ace / config-vxworks6.2.h
blob0d03b44cd503aa7289ca233d1e6bc5405a817177
1 /* -*- C++ -*- */
2 // $Id: config-vxworks6.2.h 81850 2008-06-06 08:39:54Z vzykov $
4 // The following configuration file is designed to work for VxWorks
5 // 6.2 platforms using one of these compilers:
6 // 1) The GNU g++ compiler that is shipped with VxWorks 6.2
8 #ifndef ACE_CONFIG_VXWORKS_6_2_H
9 #define ACE_CONFIG_VXWORKS_6_2_H
10 #include /**/ "ace/pre.h"
12 #if ! defined (VXWORKS)
13 # define VXWORKS
14 #endif /* ! VXWORKS */
16 #if ! defined (ACE_VXWORKS)
17 # define ACE_VXWORKS 0x620
18 #endif /* ! ACE_VXWORKS */
20 #if defined __RTP__
21 // Fix wrong typedef in unistd.h (unsigned short)
22 #define _SUSECONDS_T
23 typedef long suseconds_t;
24 #endif
25 #include <unistd.h>
27 // Fix for including right typedef for pid_t in VxTypes.h (int)
28 #include <vxWorksCommon.h>
30 #if ! defined (__ACE_INLINE__)
31 # define __ACE_INLINE__
32 #endif /* ! __ACE_INLINE__ */
34 // Compiler-specific configuration.
35 #if defined (__GNUG__)
36 # include "ace/config-g++-common.h"
38 # define ACE_LACKS_IOSTREAM_FX
39 # define ACE_LACKS_LINEBUFFERED_STREAMBUF
41 # if defined (__RTP__) && !defined (_HAS_C9X)
42 // Workaround for the fact that under RTP the log2 method can't be used
43 // without this define set, see TSR560446
44 # if !defined (_C99)
45 # define _C99
46 # endif
47 # endif
49 #elif defined (__DCPLUSPLUS__) || defined (__DCC__)
50 // Diab 4.2a or later.
51 # if !defined (ACE_LACKS_PRAGMA_ONCE)
52 // We define it with a -D with make depend.
53 # define ACE_LACKS_PRAGMA_ONCE
54 # endif /* ! ACE_LACKS_PRAGMA_ONCE */
56 # define ACE_HAS_STANDARD_CPP_LIBRARY 1
57 # define ACE_USES_STD_NAMESPACE_FOR_STDCPP_LIB 1
58 # define ACE_TEMPLATES_REQUIRE_SOURCE
60 #else /* ! __GNUG__ && ! ghs && !__DCC__ */
61 # ifdef __cplusplus /* Let it slide for C compilers. */
62 # error unsupported compiler on VxWorks
63 # endif /* __cplusplus */
64 #endif /* ! __GNUG__ && ! ghs */
66 #if !defined __RTP__
67 # if defined (TOOL) && (TOOL == gnu)
68 # if defined (CPU) && (CPU == PPC85XX || CPU == PPC604 || CPU == PPC603)
69 // These PPC's do lack log2 in kernel mode
70 # define ACE_LACKS_LOG2
71 # endif
72 # endif
73 #endif
75 // OS-specific configuration
76 #define ACE_HAS_4_4BSD_SENDMSG_RECVMSG
77 #define ACE_HAS_NONCONST_GETBY
78 #define ACE_HAS_NONCONST_SWAB
79 #define ACE_HAS_NONCONST_READV
80 #define ACE_LACKS_UNIX_SYSLOG
81 #define ACE_DEFAULT_MAX_SOCKET_BUFSIZ 32768
82 #define ACE_DEFAULT_THREAD_KEYS 16
83 #define ACE_HAS_BROKEN_ACCEPT_ADDR
84 #define ACE_HAS_NONCONST_SENDMSG
85 #define ACE_HAS_NONCONST_WRITEV
86 #define ACE_HAS_CHARPTR_DL
87 #define ACE_HAS_CLOCK_GETTIME
88 #define ACE_HAS_CLOCK_SETTIME
89 #define ACE_HAS_CONSISTENT_SIGNAL_PROTOTYPES
90 #define ACE_HAS_CPLUSPLUS_HEADERS
91 #define ACE_HAS_DIRENT
92 #define ACE_HAS_DLL 0
93 #define ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT
94 #define ACE_HAS_IOCTL_INT_3_PARAM
95 #define ACE_HAS_MSG
96 #define ACE_HAS_NONCONST_READV
97 #define ACE_HAS_NONCONST_SELECT_TIMEVAL
98 #define ACE_HAS_NONSTATIC_OBJECT_MANAGER
99 #define ACE_HAS_POSIX_NONBLOCK
100 #define ACE_HAS_POSIX_TIME
101 #define ACE_HAS_REENTRANT_FUNCTIONS
102 #define ACE_HAS_SIGACTION_CONSTP2
103 #define ACE_HAS_SIGINFO_T
104 #define ACE_HAS_SIGWAIT
105 #define ACE_HAS_SIG_ATOMIC_T
106 #define ACE_HAS_SOCKADDR_IN_SIN_LEN
107 #define ACE_HAS_SOCKADDR_IN6_SIN6_LEN
108 #define ACE_HAS_STRERROR
109 #define ACE_HAS_THREADS
110 #define ACE_HAS_SYSCTL
111 #define ACE_LACKS_ALPHASORT
112 #define ACE_LACKS_EXEC
113 #define ACE_LACKS_FILELOCKS
114 #define ACE_LACKS_FORK
115 #define ACE_LACKS_GETHOSTENT
116 #define ACE_LACKS_GETSERVBYNAME
117 #define ACE_LACKS_GETPROTOBYNAME
118 #define ACE_LACKS_GETPROTOBYNUMBER
119 #define ACE_LACKS_KEY_T
120 #define ACE_LACKS_LSTAT
121 #define ACE_LACKS_MADVISE
122 #define ACE_LACKS_MALLOC_H
123 #define ACE_LACKS_MEMORY_H
124 #define ACE_LACKS_MKFIFO
125 #define ACE_LACKS_MKTEMP
126 #define ACE_LACKS_MKSTEMP
127 #define ACE_LACKS_MMAP
128 #define ACE_LACKS_MPROTECT
129 #define ACE_LACKS_MSYNC
130 #define ACE_LACKS_NETDB_REENTRANT_FUNCTIONS
131 #define ACE_LACKS_SYS_PARAM_H
132 #define ACE_LACKS_PWD_FUNCTIONS
133 #define ACE_LACKS_READDIR_R
134 #define ACE_LACKS_READLINK
135 #define ACE_LACKS_REALPATH
136 #define ACE_LACKS_PIPE
137 #define ACE_LACKS_RLIMIT
138 #define ACE_LACKS_RWLOCK_T
139 #define ACE_LACKS_SBRK
140 #define ACE_LACKS_SEEKDIR
141 #define ACE_LACKS_SEMBUF_T
142 #define ACE_LACKS_SIGINFO_H
143 #define ACE_LACKS_SI_ADDR
144 #define ACE_LACKS_SOCKETPAIR
145 #define ACE_LACKS_STRRECVFD
146 #define ACE_LACKS_SYSV_SHMEM
147 #define ACE_LACKS_TELLDIR
148 #define ACE_LACKS_TEMPNAM
149 #define ACE_LACKS_TIMESPEC_T
150 #define ACE_LACKS_TRUNCATE
151 #define ACE_LACKS_UCONTEXT_H
152 #define ACE_LACKS_USECONDS_T
153 #define ACE_LACKS_UMASK
154 #define ACE_LACKS_STRPTIME
155 #define ACE_PAGE_SIZE 4096
156 #define ACE_THR_PRI_FIFO_DEF 101
157 #define ACE_THR_PRI_OTHER_DEF ACE_THR_PRI_FIFO_DEF
158 #define ACE_HAS_SIGTIMEDWAIT
159 #define ACE_HAS_SIGSUSPEND
160 #if !defined (ACE_VXWORKS_SPARE)
161 # define ACE_VXWORKS_SPARE spare4
162 #endif /* ! ACE_VXWORKS_SPARE */
163 #define ACE_HAS_GETIFADDRS
165 #define ACE_LACKS_SETEGID
166 #define ACE_LACKS_SETPGID
167 #define ACE_LACKS_SETREGID
168 #define ACE_LACKS_SETREUID
169 #define ACE_LACKS_SETSID
170 #define ACE_LACKS_SETUID
171 #define ACE_LACKS_SETEUID
172 #define ACE_LACKS_GETEUID
173 #define ACE_LACKS_GETUID
174 #define ACE_LACKS_GETPGID
175 #define ACE_LACKS_GETEGID
176 #define ACE_LACKS_GETGID
177 #define ACE_LACKS_SETGID
179 #define ACE_LACKS_SYS_UIO_H
180 #define ACE_LACKS_SYS_IPC_H
181 #define ACE_LACKS_SYS_SEM_H
182 #define ACE_LACKS_STROPTS_H
183 #define ACE_LACKS_SYS_MSG_H
184 #define ACE_LACKS_PWD_H
185 #define ACE_LACKS_SYS_SHM_H
186 #define ACE_LACKS_TERMIOS_H
187 #define ACE_LACKS_POLL_H
188 #define ACE_LACKS_FCNTL
190 // Some string things
191 #define ACE_LACKS_STRCASECMP
192 #define ACE_LACKS_ITOW
193 #define ACE_LACKS_WCSDUP
194 #define ACE_LACKS_WCSICMP
195 #define ACE_LACKS_WCSNICMP
196 #define ACE_LACKS_STRTOULL
197 #define ACE_LACKS_WCSTOULL
199 #define ACE_HAS_CHARPTR_SOCKOPT
200 #define ACE_LACKS_SYMLINKS
202 #if defined __RTP__
203 // We are building for RTP mode
204 #if !defined (ACE_AS_STATIC_LIBS)
205 # define ACE_HAS_SVR4_DYNAMIC_LINKING
206 #endif
207 #define ACE_HAS_2_PARAM_ASCTIME_R_AND_CTIME_R
208 #define ACE_LACKS_REGEX_H
209 #define ACE_LACKS_PUTENV
210 #define ACE_HAS_SETENV
211 #define ACE_HAS_3_PARAM_WCSTOK
212 #define ACE_HAS_WCHAR
213 #define ACE_HAS_VFWPRINTF
214 #define ACE_SIZEOF_WCHAR 2
215 #else
216 // We are building for kernel mode
217 #define ACE_LACKS_INTPTR_T
218 #define ACE_LACKS_SUSECONDS_T
219 #define ACE_LACKS_INTTYPES_H
220 #define ACE_LACKS_STDINT_H
221 #define ACE_LACKS_UNAME
222 #define ACE_LACKS_UTSNAME_T
223 #define ACE_LACKS_RAND_REENTRANT_FUNCTIONS
224 #define ACE_LACKS_DLFCN_H
225 #define ACE_LACKS_WAIT
226 #define ACE_LACKS_WAITPID
227 #define ACE_LACKS_SYS_TIME_H
228 #define ACE_LACKS_SYS_SELECT_H
229 #define ACE_LACKS_STRINGS_H
230 #define ACE_MKDIR_LACKS_MODE
231 #define ACE_HAS_SIZET_PTR_ASCTIME_R_AND_CTIME_R
232 #define ACE_LACKS_SEARCH_H
233 #define ACE_LACKS_SYSCONF
234 #define ACE_LACKS_GETPID
235 #define ACE_LACKS_GETPPID
236 #define ACE_LACKS_WCHAR_H
237 #define ACE_LACKS_WCTYPE_H
238 #define ACE_LACKS_WCSCAT
239 #define ACE_LACKS_WCSCHR
240 #define ACE_LACKS_WCSCMP
241 #define ACE_LACKS_WCSCPY
242 #define ACE_LACKS_WCSCSPN
243 #define ACE_LACKS_WCSLEN
244 #define ACE_LACKS_WCSNCAT
245 #define ACE_LACKS_WCSNCMP
246 #define ACE_LACKS_WCSNCPY
247 #define ACE_LACKS_WCSPBRK
248 #define ACE_LACKS_WCSRCHR
249 #define ACE_LACKS_WCSSPN
250 #define ACE_LACKS_WCSSTR
251 #define ACE_LACKS_WCSTOK
252 #define ACE_LACKS_TOWLOWER
253 #define ACE_LACKS_TOWUPPER
254 #define ACE_LACKS_WCSTOD
255 #define ACE_LACKS_WCSTOL
256 #define ACE_LACKS_WCSTOUL
257 #define ACE_LACKS_FGETWC
258 #define ACE_LACKS_FGETWS
259 #define ACE_LACKS_FPUTWS
260 #if !defined (ACE_MAIN)
261 # define ACE_MAIN ace_main
262 #endif /* ! ACE_MAIN */
263 #endif
265 // It is possible to enable pthread support with VxWorks, when the user decides
266 // to use this, we need some more defines
267 #if defined ACE_HAS_PTHREADS
268 # define ACE_HAS_THREAD_SPECIFIC_STORAGE
269 # define ACE_HAS_POSIX_SEM
270 # define ACE_LACKS_MUTEXATTR_PSHARED
271 # define ACE_LACKS_CONDATTR_PSHARED
272 // Include this file, the sys/stat.h file shipped with VxWorks has old types
273 // and without this include we get a lot of compile errors. A TSR has been filed
274 // so that hopefully in the future we can zap this include
275 #include "types/vxTypesOld.h"
276 #else
277 # define ACE_LACKS_PTHREAD_H
278 # define ACE_HAS_VXTHREADS
279 # if !defined __RTP__
280 // Only when building for kernel mode we can use TSS emulation, in rtp mode
281 // we can't use the WIND_TCB struct anymore
282 # define ACE_HAS_TSS_EMULATION
283 # endif
284 // VxWorks has no recursive mutexes. This was set in the past but it doesn't
285 // work with the pthread support, so only set it for the time being when pthread
286 // is disabled
287 # define ACE_HAS_RECURSIVE_MUTEXES
288 # define ACE_LACKS_COND_T
289 # define ACE_HAS_MUTEX_TIMEOUTS
290 #endif
292 #if !defined (ACE_MT_SAFE)
293 # define ACE_MT_SAFE 1
294 #endif
296 // Needed include to get all VxWorks CPU types
297 #include "types/vxCpu.h"
298 #if (CPU == PENTIUM || CPU == PENTIUM2 || CPU == PENTIUM3 || CPU == PENTIUM4)
299 // If running an Intel Pentium the
300 // ACE_OS::gethrtime () can use the RDTSC instruction.
301 # define ACE_HAS_PENTIUM
302 #endif
304 // VxWorks defines the CPU define MAP, undef it to prevent problems with
305 // application code
306 #if defined (MAP)
307 #undef MAP
308 #endif /* MAP */
310 #if !defined (ACE_NEEDS_HUGE_THREAD_STACKSIZE)
311 # define ACE_NEEDS_HUGE_THREAD_STACKSIZE 65536
312 #endif /* ACE_NEEDS_HUGE_THREAD_STACKSIZE */
314 #if !defined (ACE_NTRACE)
315 # define ACE_NTRACE 1
316 #endif /* ACE_NTRACE */
318 // By default, don't include RCS Id strings in object code.
319 #if !defined (ACE_USE_RCSID)
320 #define ACE_USE_RCSID 0
321 #endif /* !ACE_USE_RCSID */
323 #if defined (ACE_HAS_IP_MULTICAST)
324 # define ACE_LACKS_PERFECT_MULTICAST_FILTERING 1
325 #endif /* ACE_HAS_IP_MULTICAST */
327 #include /**/ "ace/post.h"
328 #endif /* ACE_CONFIG_VXWORKS_6_2_H */