Document return values
[ACE_TAO.git] / ACE / ace / config-macosx-panther.h
blob2eb6c3c68fddd381cdc793ba5ed26b18d8816730
1 /* -*- C++ -*- */
2 // This configuration file is designed to work with the MacOS X operating system.
4 #ifndef ACE_CONFIG_MACOSX_H
5 #define ACE_CONFIG_MACOSX_H
7 #if ! defined (__ACE_INLINE__)
8 #define __ACE_INLINE__
9 #endif /* ! __ACE_INLINE__ */
11 #if defined (__GNUG__)
12 # include "ace/config-g++-common.h"
13 #endif /* __GNUG__ */
15 #define ACE_LACKS_SUSECONDS_T
16 #define ACE_SIZE_T_FORMAT_SPECIFIER_ASCII "%lu"
18 #if defined (ACE_HAS_PENTIUM)
19 # undef ACE_HAS_PENTIUM
20 #endif /* ACE_HAS_PENTIUM */
22 #if !defined (_THREAD_SAFE)
23 #define _THREAD_SAFE
24 #endif /* _THREAD_SAFE */
26 #define ACE_HAS_GPERF
27 #define ACE_HAS_POSIX_SEM
29 #define ACE_LACKS_STROPTS_H
30 #define ACE_LACKS_WCHAR_H
33 // Compiler/platform defines the sig_atomic_t typedef.
34 #define ACE_HAS_SIG_ATOMIC_T
36 // Compiler/platform supports SVR4 signal typedef
37 #define ACE_HAS_SVR4_SIGNAL_T
39 //Platform/compiler has the sigwait(2) prototype
40 #define ACE_HAS_SIGWAIT
42 //Platform supports sigsuspend()
43 #define ACE_HAS_SIGSUSPEND
45 //#define ACE_HAS_RECURSIVE_THR_EXIT_SEMANTICS
46 #define ACE_LACKS_GETPGID
47 #define ACE_LACKS_RWLOCK_T
49 // Optimize ACE_Handle_Set for select().
50 #define ACE_HAS_HANDLE_SET_OPTIMIZED_FOR_SELECT
52 #define ACE_HAS_NONCONST_SELECT_TIMEVAL
54 #define ACE_NEEDS_SCHED_H
56 #define ACE_HAS_ALT_CUSERID
58 // Platform supports POSIX timers via struct timespec.
59 #define ACE_HAS_POSIX_TIME
60 #define ACE_HAS_UALARM
62 // Platform defines struct timespec but not timespec_t
63 #define ACE_LACKS_TIMESPEC_T
65 #define ACE_LACKS_STRRECVFD
67 #define ACE_HAS_SOCKADDR_IN_SIN_LEN
68 #define ACE_HAS_SOCKADDR_IN6_SIN6_LEN
70 // Platform supports System V IPC (most versions of UNIX, but not Win32)
71 #define ACE_HAS_SYSV_IPC
73 // Compiler/platform contains the <sys/syscall.h> file.
74 #define ACE_HAS_SYS_SYSCALL_H
76 #define ACE_HAS_CONSISTENT_SIGNAL_PROTOTYPES
78 // Compiler/platform supports alloca().
79 // Although ACE does have alloca() on this compiler/platform combination, it is
80 // disabled by default since it can be dangerous. Uncomment the following line
81 // if you ACE to use it.
82 //#define ACE_HAS_ALLOCA
84 // Compiler/platform correctly calls init()/fini() for shared libraries.
85 #define ACE_HAS_AUTOMATIC_INIT_FINI
87 // Explicit dynamic linking permits "lazy" symbol resolution
88 //#define ACE_HAS_RTLD_LAZY_V
90 // platform supports POSIX O_NONBLOCK semantics
91 #define ACE_HAS_POSIX_NONBLOCK
93 // platform supports IP multicast
94 #define ACE_HAS_IP_MULTICAST
95 #define ACE_LACKS_PERFECT_MULTICAST_FILTERING 1
97 // Compiler/platform has the getrusage() system call.
98 #define ACE_HAS_GETRUSAGE
100 // Compiler supports the ssize_t typedef.
101 #define ACE_HAS_SSIZE_T
103 // Compiler/platform provides the sockio.h file.
104 #define ACE_HAS_SYS_SOCKIO_H
106 // Defines the page size of the system.
107 #define ACE_HAS_GETPAGESIZE
109 // Platform provides <sys/filio.h> header.
110 #define ACE_HAS_SYS_FILIO_H
112 // Platform/compiler supports timezone * as second parameter to gettimeofday().
113 #define ACE_HAS_TIMEZONE_GETTIMEOFDAY
115 #define ACE_LACKS_SYS_MSG_H
116 #define ACE_LACKS_SYSV_MSQ_PROTOS
117 #define ACE_HAS_MSG
118 #define ACE_HAS_4_4BSD_SENDMSG_RECVMSG
119 #define ACE_HAS_NONCONST_MSGSND
121 #if !defined (ACE_MT_SAFE)
122 # define ACE_MT_SAFE 1
123 #endif
125 #if ACE_MT_SAFE == 1
126 // Yes, we do have threads.
127 # define ACE_HAS_THREADS
128 // And they're even POSIX pthreads
129 # define ACE_HAS_PTHREADS
130 # define ACE_HAS_PTHREAD_SCHEDPARAM
131 # define ACE_HAS_THREAD_SPECIFIC_STORAGE
132 #endif /* ACE_MT_SAFE == 1 */
134 # define ACE_LACKS_THREAD_PROCESS_SCOPING
136 #define ACE_HAS_DIRENT
137 #define ACE_LACKS_POLL_H
138 #define ACE_LACKS_SEARCH_H
140 #define ACE_LACKS_SETSCHED
141 //#define ACE_HAS_RECURSIVE_MUTEXES
143 // Platform has POSIX terminal interface.
144 #define ACE_HAS_TERMIOS
146 #define ACE_HAS_SEMUN
147 #define ACE_HAS_SIGINFO_T
148 #define ACE_LACKS_SIGINFO_H
149 #define ACE_HAS_UCONTEXT_T
150 #define ACE_HAS_GETIFADDRS
151 #define ACE_LACKS_UNNAMED_SEMAPHORE
153 // dlcompat package (not part of base Darwin) is needed for dlopen().
154 // You may download directly from sourceforge and install or use fink
155 // Fink installer puts libraries in /sw/lib and headers in /sw/include
156 // In order to install dlcompat do the following:
157 // - download fink from http://fink.sf.net
158 // - type:
159 // fink install dlcompat
160 // as of Dec 2002, if you use fink you will need to uncomment the next line
161 //#define ACE_NEEDS_DL_UNDERSCORE
162 #define ACE_HAS_SVR4_DYNAMIC_LINKING
163 #define ACE_LD_SEARCH_PATH ACE_TEXT ("DYLD_LIBRARY_PATH")
164 #define ACE_DLL_SUFFIX ACE_TEXT (".dylib")
165 //#define ACE_LACKS_DLCLOSE
167 // gperf seems to need this
168 //#define ACE_HAS_NONSTATIC_OBJECT_MANAGER
170 #if defined(__APPLE_CC__) && (__APPLE_CC__ < 1173)
171 #error "Compiler must be upgraded, see http://developer.apple.com"
172 #endif /* __APPLE_CC__ */
174 #endif /* ACE_CONFIG_MACOSX_H */