[7297] Fixed profession spells sorting in trainer spell list at client.
[getmangos.git] / dep / ACE_wrappers / ace / config-vxworks6.4.h
blob2d8db5294fd69c38daaa8565ee53291fdf4a6256
1 //* -*- C++ -*- */
2 // $Id: config-vxworks6.4.h 81850 2008-06-06 08:39:54Z vzykov $
4 // The following configuration file is designed to work for VxWorks
5 // 6.4 platforms using one of these compilers:
6 // 1) The GNU g++ compiler that is shipped with VxWorks 6.4
7 // 2) The Diab compiler that is shipped with VxWorks 6.4
9 #ifndef ACE_CONFIG_VXWORKS_6_4_H
10 #define ACE_CONFIG_VXWORKS_6_4_H
11 #include /**/ "ace/pre.h"
13 #if ! defined (VXWORKS)
14 # define VXWORKS
15 #endif /* ! VXWORKS */
17 #if ! defined (ACE_VXWORKS)
18 # define ACE_VXWORKS 0x640
19 #endif /* ! ACE_VXWORKS */
21 #if !defined (__RTP__)
22 // Fix for wrong typedef of time_t in kernel mode
23 #ifndef _TIME_T
24 #define _TIME_T
25 typedef long time_t;
26 #endif
27 #endif
29 #if ! defined (__ACE_INLINE__)
30 # define __ACE_INLINE__
31 #endif /* ! __ACE_INLINE__ */
33 // Compiler-specific configuration.
34 #if defined (__GNUG__)
35 # include "ace/config-g++-common.h"
37 # define ACE_LACKS_IOSTREAM_FX
38 # define ACE_LACKS_LINEBUFFERED_STREAMBUF
40 # if defined (__RTP__) && !defined (_HAS_C9X)
41 // Workaround for the fact that under RTP the log2 method can't be used
42 // without this define set, see TSR560446
43 # if !defined (_C99)
44 # define _C99
45 # endif
46 # endif
48 #elif defined (__DCC__)
49 # define ACE_HAS_STANDARD_CPP_LIBRARY 1
50 # define ACE_TEMPLATES_REQUIRE_SOURCE
51 #else /* ! __GNUG__ && ! ghs && !__DCC__ */
52 # ifdef __cplusplus /* Let it slide for C compilers. */
53 # error unsupported compiler on VxWorks
54 # endif /* __cplusplus */
55 #endif /* ! __GNUG__ && ! ghs */
57 // Needed include to get all VxWorks CPU types
58 #include "types/vxCpu.h"
59 #if defined __RTP__
60 #if defined (_VX_CPU) && (_VX_CPU == _VX_PENTIUM || _VX_CPU == _VX_PENTIUM2 || _VX_CPU == _VX_PENTIUM3 || _VX_CPU == _VX_PENTIUM4)
61 // If running an Intel Pentium the
62 // ACE_OS::gethrtime () can use the RDTSC instruction.
63 # define ACE_HAS_PENTIUM
64 #endif
65 #else
66 #if defined (CPU) && (CPU == PENTIUM || CPU == PENTIUM2 || CPU == PENTIUM3 || CPU == PENTIUM4)
67 // If running an Intel Pentium the
68 // ACE_OS::gethrtime () can use the RDTSC instruction.
69 # define ACE_HAS_PENTIUM
70 #endif
71 #endif
73 #if !defined __RTP__
74 # if defined (TOOL) && (TOOL == gnu)
75 # if defined (CPU) && (CPU == PPC85XX || CPU == PPC604 || CPU == PPC603)
76 // These PPC's do lack log2 in kernel mode
77 # define ACE_LACKS_LOG2
78 # endif
79 # endif
80 #endif
82 // OS-specific configuration
83 #define ACE_HAS_4_4BSD_SENDMSG_RECVMSG
84 #define ACE_HAS_3_PARAM_READDIR_R
85 #define ACE_HAS_NONCONST_GETBY
86 #define ACE_HAS_NONCONST_SWAB
87 #define ACE_LACKS_UNIX_SYSLOG
88 #define ACE_DEFAULT_MAX_SOCKET_BUFSIZ 32768
89 #define ACE_DEFAULT_THREAD_KEYS 16
90 #define ACE_HAS_BROKEN_ACCEPT_ADDR
91 #define ACE_HAS_NONCONST_SENDMSG
92 #define ACE_HAS_NONCONST_WRITEV
93 #define ACE_HAS_CHARPTR_DL
94 #define ACE_HAS_CLOCK_GETTIME
95 #define ACE_HAS_CLOCK_SETTIME
96 #define ACE_HAS_CONSISTENT_SIGNAL_PROTOTYPES
97 #define ACE_HAS_CPLUSPLUS_HEADERS
98 #define ACE_HAS_DIRENT
99 #define ACE_HAS_DLL 0
100 #define ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT
101 #define ACE_HAS_MSG
102 #define ACE_HAS_NONCONST_READV
103 #define ACE_HAS_NONCONST_SELECT_TIMEVAL
104 #define ACE_HAS_NONSTATIC_OBJECT_MANAGER
105 #define ACE_HAS_POSIX_NONBLOCK
106 #define ACE_HAS_POSIX_TIME
107 #define ACE_HAS_REENTRANT_FUNCTIONS
108 #define ACE_HAS_SIGACTION_CONSTP2
109 #define ACE_HAS_SIGINFO_T
110 #define ACE_HAS_SIGWAIT
111 #define ACE_HAS_SIG_ATOMIC_T
112 #define ACE_HAS_SOCKADDR_IN_SIN_LEN
113 #define ACE_HAS_SOCKADDR_IN6_SIN6_LEN
114 #define ACE_HAS_STRERROR
115 #define ACE_HAS_THREADS
116 #define ACE_HAS_SYSCTL
117 #define ACE_LACKS_ALPHASORT
118 #define ACE_LACKS_EXEC
119 #define ACE_LACKS_RLIMIT
120 #define ACE_LACKS_FILELOCKS
121 #define ACE_LACKS_FORK
122 #define ACE_LACKS_GETHOSTENT
123 #define ACE_LACKS_GETSERVBYNAME
124 #define ACE_LACKS_GETPROTOBYNAME
125 #define ACE_LACKS_GETPROTOBYNUMBER
126 #define ACE_LACKS_GETIPNODEBYADDR
127 #define ACE_LACKS_GETIPNODEBYNAME_IPV6
128 #define ACE_LACKS_LSTAT
129 #define ACE_LACKS_MADVISE
130 #define ACE_LACKS_MALLOC_H
131 #define ACE_LACKS_MEMORY_H
132 #define ACE_LACKS_MKFIFO
133 #define ACE_LACKS_MKSTEMP
134 #define ACE_LACKS_NETDB_REENTRANT_FUNCTIONS
135 #define ACE_LACKS_SYS_PARAM_H
136 #define ACE_LACKS_PWD_FUNCTIONS
137 #define ACE_LACKS_READLINK
138 #define ACE_LACKS_REALPATH
139 #define ACE_LACKS_PIPE
140 #define ACE_LACKS_RWLOCK_T
141 #define ACE_LACKS_SBRK
142 #define ACE_LACKS_SEEKDIR
143 #define ACE_LACKS_SEMBUF_T
144 #define ACE_LACKS_SIGINFO_H
145 #define ACE_LACKS_SI_ADDR
146 #define ACE_LACKS_SOCKETPAIR
147 #define ACE_LACKS_STRRECVFD
148 #define ACE_LACKS_SYSV_SHMEM
149 #define ACE_LACKS_TELLDIR
150 #define ACE_LACKS_TIMESPEC_T
151 #define ACE_LACKS_TRUNCATE
152 #define ACE_LACKS_UCONTEXT_H
153 #define ACE_LACKS_USECONDS_T
154 #define ACE_LACKS_UMASK
155 #define ACE_LACKS_STRPTIME
156 #define ACE_LACKS_MKTEMP
157 #define ACE_LACKS_TEMPNAM
158 #define ACE_PAGE_SIZE 4096
159 #define ACE_THR_PRI_FIFO_DEF 101
160 #define ACE_THR_PRI_OTHER_DEF ACE_THR_PRI_FIFO_DEF
161 #define ACE_HAS_SIGTIMEDWAIT
162 #define ACE_HAS_SIGSUSPEND
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_ITOW
192 #define ACE_LACKS_WCSDUP
193 #define ACE_LACKS_WCSICMP
194 #define ACE_LACKS_WCSNICMP
195 #define ACE_LACKS_STRTOULL
196 #define ACE_LACKS_WCSTOULL
198 #define ACE_HAS_CHARPTR_SOCKOPT
199 #define ACE_LACKS_SYMLINKS
201 #if defined __RTP__
202 // We are building for RTP mode
203 #if !defined (ACE_AS_STATIC_LIBS)
204 # define ACE_HAS_SVR4_DYNAMIC_LINKING
205 #endif
206 #define ACE_HAS_2_PARAM_ASCTIME_R_AND_CTIME_R
207 #define ACE_LACKS_REGEX_H
208 #if defined ACE_HAS_PENTIUM
209 // Bug to workaround VxWorks 6.4 x86
210 # define ACE_LACKS_PUTENV
211 #endif
212 #define ACE_HAS_SETENV
213 #define ACE_LACKS_STRCASECMP
214 #define ACE_HAS_3_PARAM_WCSTOK
215 #define ACE_HAS_WCHAR
216 #define ACE_HAS_VFWPRINTF
217 #define ACE_SIZEOF_WCHAR 2
218 #define ACE_HAS_SHM_OPEN
219 #if defined (ACE_AS_STATIC_LIBS)
220 # define ACE_HAS_AIO_CALLS
221 #endif
222 // VxWorks seems to either not define this or define as zero up till now
223 #if !defined (IOV_MAX) || (IOV_MAX == 0)
224 #define ACE_IOV_MAX 16
225 #endif
226 #else
227 // We are building for kernel mode
228 #define ACE_LACKS_SUSECONDS_T
229 #define ACE_LACKS_INTPTR_T
230 #define ACE_LACKS_INTTYPES_H
231 #define ACE_LACKS_STDINT_H
232 #define ACE_LACKS_UNAME
233 #define ACE_LACKS_UTSNAME_T
234 #define ACE_LACKS_RAND_REENTRANT_FUNCTIONS
235 #define ACE_LACKS_DLFCN_H
236 #define ACE_LACKS_WAIT
237 #define ACE_LACKS_WAITPID
238 #define ACE_LACKS_SYS_TIME_H
239 #define ACE_LACKS_SYS_SELECT_H
240 #define ACE_MKDIR_LACKS_MODE
241 #define ACE_HAS_SIZET_PTR_ASCTIME_R_AND_CTIME_R
242 #define ACE_LACKS_SEARCH_H
243 #define ACE_LACKS_SYSCONF
244 #define ACE_LACKS_GETPPID
245 #define ACE_LACKS_WCHAR_H
246 #define ACE_LACKS_WCTYPE_H
247 #define ACE_LACKS_WCSCAT
248 #define ACE_LACKS_WCSCHR
249 #define ACE_LACKS_WCSCMP
250 #define ACE_LACKS_WCSCPY
251 #define ACE_LACKS_WCSCSPN
252 #define ACE_LACKS_WCSLEN
253 #define ACE_LACKS_WCSNCAT
254 #define ACE_LACKS_WCSNCMP
255 #define ACE_LACKS_WCSNCPY
256 #define ACE_LACKS_WCSPBRK
257 #define ACE_LACKS_WCSRCHR
258 #define ACE_LACKS_WCSSPN
259 #define ACE_LACKS_WCSSTR
260 #define ACE_LACKS_WCSTOK
261 #define ACE_LACKS_TOWLOWER
262 #define ACE_LACKS_TOWUPPER
263 #define ACE_LACKS_WCSTOD
264 #define ACE_LACKS_WCSTOL
265 #define ACE_LACKS_WCSTOUL
266 #define ACE_LACKS_FGETWC
267 #define ACE_LACKS_FGETWS
268 #define ACE_LACKS_FPUTWS
269 #define ACE_HAS_IOCTL_INT_3_PARAM
270 #define ACE_LACKS_MMAP
271 #define ACE_LACKS_MSYNC
272 #define ACE_LACKS_MPROTECT
273 #if !defined (ACE_MAIN)
274 # define ACE_MAIN ace_main
275 #endif /* ! ACE_MAIN */
276 #endif
278 // It is possible to enable pthread support with VxWorks, when the user decides
279 // to use this, we need some more defines
280 #if defined ACE_HAS_PTHREADS
281 # define ACE_HAS_THREAD_SPECIFIC_STORAGE
282 # if !defined __RTP__
283 # define ACE_LACKS_PTHREAD_ATTR_SETSTACK
284 # endif
285 # define ACE_HAS_PTHREAD_ATTR_SETNAME
286 # define ACE_HAS_POSIX_SEM
287 # define ACE_LACKS_MUTEXATTR_PSHARED
288 # define ACE_LACKS_CONDATTR_PSHARED
289 // Include this file, the sys/stat.h file shipped with VxWorks has old types
290 // and without this include we get a lot of compile errors. A TSR has been filed
291 // so that hopefully in the future we can zap this include
292 #include "types/vxTypesOld.h"
293 #else
294 # define ACE_LACKS_PTHREAD_H
295 # define ACE_HAS_VXTHREADS
296 # if !defined __RTP__
297 // Only when building for kernel mode we can use TSS emulation, in rtp mode
298 // we can't use the WIND_TCB struct anymore
299 # define ACE_HAS_TSS_EMULATION
300 # if !defined (ACE_VXWORKS_SPARE)
301 # define ACE_VXWORKS_SPARE spare4
302 # endif /* ! ACE_VXWORKS_SPARE */
303 # endif
304 // VxWorks has no recursive mutexes. This was set in the past but it doesn't
305 // work with the pthread support, so only set it for the time being when pthread
306 // is disabled
307 # define ACE_HAS_RECURSIVE_MUTEXES
308 # define ACE_LACKS_COND_T
309 # define ACE_HAS_MUTEX_TIMEOUTS
310 #endif
312 #if !defined (ACE_MT_SAFE)
313 # define ACE_MT_SAFE 1
314 #endif
316 // VxWorks defines the CPU define MAP, undef it to prevent problems with
317 // application code
318 #if defined (MAP)
319 #undef MAP
320 #endif /* MAP */
322 #if !defined (ACE_NEEDS_HUGE_THREAD_STACKSIZE)
323 # define ACE_NEEDS_HUGE_THREAD_STACKSIZE 65536
324 #endif /* ACE_NEEDS_HUGE_THREAD_STACKSIZE */
326 #if !defined (ACE_NTRACE)
327 # define ACE_NTRACE 1
328 #endif /* ACE_NTRACE */
330 // By default, don't include RCS Id strings in object code.
331 #if !defined (ACE_USE_RCSID)
332 #define ACE_USE_RCSID 0
333 #endif /* !ACE_USE_RCSID */
335 #if defined (ACE_HAS_IP_MULTICAST)
336 # define ACE_LACKS_PERFECT_MULTICAST_FILTERING 1
337 #endif /* ACE_HAS_IP_MULTICAST */
339 #include /**/ "ace/post.h"
340 #endif /* ACE_CONFIG_VXWORKS_6_4_H */