6 /*********************************************************************
7 * Defaults: see target specific redefinitions below.
8 *********************************************************************/
10 /* We're building the pthreads-win32 library */
13 /* Do we know about the C type sigset_t? */
16 /* Define if you have the <signal.h> header file. */
19 /* Define if you have the Borland TASM32 or compatible assembler. */
22 /* Define if you don't have Win32 DuplicateHandle. (eg. WinCE) */
23 #undef NEED_DUPLICATEHANDLE
25 /* Define if you don't have Win32 _beginthreadex. (eg. WinCE) */
26 #undef NEED_CREATETHREAD
28 /* Define if you don't have Win32 errno. (eg. WinCE) */
31 /* Define if you don't have Win32 calloc. (eg. WinCE) */
34 /* Define if you don't have Win32 ftime. (eg. WinCE) */
37 /* Define if you don't have Win32 semaphores. (eg. WinCE 2.1 or earlier) */
40 /* Define if you need to convert string parameters to unicode. (eg. WinCE) */
41 #undef NEED_UNICODE_CONSTS
43 /* Define if your C (not C++) compiler supports "inline" functions. */
46 /* Do we know about type mode_t? */
50 * Define if GCC has atomic builtins, i.e. __sync_* intrinsics
51 * __sync_lock_* is implemented in mingw32 gcc 4.5.2 at least
52 * so this define does not turn those on or off. If you get an
53 * error from __sync_lock* then consider upgrading your gcc.
55 #undef HAVE_GCC_ATOMIC_BUILTINS
57 /* Define if you have the timespec struct */
58 #undef HAVE_STRUCT_TIMESPEC
60 /* Define if you don't have the GetProcessAffinityMask() */
61 #undef NEED_PROCESS_AFFINITY_MASK
63 /* Define if your version of Windows TLSGetValue() clears WSALastError
64 * and calling SetLastError() isn't enough restore it. You'll also need to
65 * link against wsock32.lib (or libwsock32.a for MinGW).
67 #undef RETAIN_WSALASTERROR
70 # ----------------------------------------------------------------------
71 # The library can be built with some alternative behaviour to better
72 # facilitate development of applications on Win32 that will be ported
73 # to other POSIX systems.
75 # Nothing described here will make the library non-compliant and strictly
76 # compliant applications will not be affected in any way, but
77 # applications that make assumptions that POSIX does not guarantee are
78 # not strictly compliant and may fail or misbehave with some settings.
80 # PTW32_THREAD_ID_REUSE_INCREMENT
82 # POSIX says that applications should assume that thread IDs can be
83 # recycled. However, Solaris (and some other systems) use a [very large]
84 # sequence number as the thread ID, which provides virtual uniqueness.
85 # This provides a very high but finite level of safety for applications
86 # that are not meticulous in tracking thread lifecycles e.g. applications
87 # that call functions which target detached threads without some form of
88 # thread exit synchronisation.
91 # Set to any value in the range: 0 <= value < 2^wordsize.
92 # Set to 0 to emulate reusable thread ID behaviour like Linux or *BSD.
93 # Set to 1 for unique thread IDs like Solaris (this is the default).
94 # Set to some factor of 2^wordsize to emulate smaller word size types
95 # (i.e. will wrap sooner). This might be useful to emulate some embedded
98 # define PTW32_THREAD_ID_REUSE_INCREMENT 0
100 # ----------------------------------------------------------------------
102 #undef PTW32_THREAD_ID_REUSE_INCREMENT
105 /*********************************************************************
106 * Target specific groups
108 * If you find that these are incorrect or incomplete please report it
109 * to the pthreads-win32 maintainer. Thanks.
110 *********************************************************************/
112 #define NEED_DUPLICATEHANDLE
113 #define NEED_CREATETHREAD
117 /* #define NEED_SEM */
118 #define NEED_UNICODE_CONSTS
119 #define NEED_PROCESS_AFFINITY_MASK
120 /* This may not be needed */
121 #define RETAIN_WSALASTERROR
126 #define HAVE_STRUCT_TIMESPEC
129 #if defined(__GNUC__)
130 #define HAVE_C_INLINE
133 #if defined(__MINGW64__)
135 #define HAVE_STRUCT_TIMESPEC
136 #elif defined(__MINGW32__)
140 #if defined(__BORLANDC__)
143 #if defined(__WATCOMC__)
147 #define HAVE_SIGNAL_H
148 #define HAVE_C_INLINE