source: win32/libpthreads-w32-2.8.0/include/config.h

Last change on this file was 191, checked in by tim, 14 years ago

updated scons build scripts to handle MinGW
added binaries for MinGW build dependencies

File size: 3.8 KB
Line 
1/* config.h  */
2
3#ifndef PTW32_CONFIG_H
4#define PTW32_CONFIG_H
5
6/*********************************************************************
7 * Defaults: see target specific redefinitions below.
8 *********************************************************************/
9
10/* We're building the pthreads-win32 library */
11#define PTW32_BUILD
12
13/* Do we know about the C type sigset_t? */
14#undef HAVE_SIGSET_T
15
16/* Define if you have the <signal.h> header file.  */
17#undef HAVE_SIGNAL_H
18
19/* Define if you have the Borland TASM32 or compatible assembler.  */
20#undef HAVE_TASM32
21
22/* Define if you don't have Win32 DuplicateHandle. (eg. WinCE) */
23#undef NEED_DUPLICATEHANDLE
24
25/* Define if you don't have Win32 _beginthreadex. (eg. WinCE) */
26#undef NEED_CREATETHREAD
27
28/* Define if you don't have Win32 errno. (eg. WinCE) */
29#undef NEED_ERRNO
30
31/* Define if you don't have Win32 calloc. (eg. WinCE)  */
32#undef NEED_CALLOC
33
34/* Define if you don't have Win32 ftime. (eg. WinCE)  */
35#undef NEED_FTIME
36
37/* Define if you don't have Win32 semaphores. (eg. WinCE 2.1 or earlier)  */
38#undef NEED_SEM
39
40/* Define if you need to convert string parameters to unicode. (eg. WinCE)  */
41#undef NEED_UNICODE_CONSTS
42
43/* Define if your C (not C++) compiler supports "inline" functions. */
44#undef HAVE_C_INLINE
45
46/* Do we know about type mode_t? */
47#undef HAVE_MODE_T
48
49/* Define if you have the timespec struct */
50#undef HAVE_STRUCT_TIMESPEC
51
52/* Define if you don't have the GetProcessAffinityMask() */
53#undef NEED_PROCESS_AFFINITY_MASK
54
55/*
56# ----------------------------------------------------------------------
57# The library can be built with some alternative behaviour to better
58# facilitate development of applications on Win32 that will be ported
59# to other POSIX systems.
60#
61# Nothing described here will make the library non-compliant and strictly
62# compliant applications will not be affected in any way, but
63# applications that make assumptions that POSIX does not guarantee are
64# not strictly compliant and may fail or misbehave with some settings.
65#
66# PTW32_THREAD_ID_REUSE_INCREMENT
67# Purpose:
68# POSIX says that applications should assume that thread IDs can be
69# recycled. However, Solaris (and some other systems) use a [very large]
70# sequence number as the thread ID, which provides virtual uniqueness.
71# This provides a very high but finite level of safety for applications
72# that are not meticulous in tracking thread lifecycles e.g. applications
73# that call functions which target detached threads without some form of
74# thread exit synchronisation.
75#
76# Usage:
77# Set to any value in the range: 0 <= value < 2^wordsize.
78# Set to 0 to emulate reusable thread ID behaviour like Linux or *BSD.
79# Set to 1 for unique thread IDs like Solaris (this is the default).
80# Set to some factor of 2^wordsize to emulate smaller word size types
81# (i.e. will wrap sooner). This might be useful to emulate some embedded
82# systems.
83#
84# define PTW32_THREAD_ID_REUSE_INCREMENT 0
85#
86# ----------------------------------------------------------------------
87 */
88#undef PTW32_THREAD_ID_REUSE_INCREMENT
89
90
91/*********************************************************************
92 * Target specific groups
93 *
94 * If you find that these are incorrect or incomplete please report it
95 * to the pthreads-win32 maintainer. Thanks.
96 *********************************************************************/
97#ifdef WINCE
98#define NEED_DUPLICATEHANDLE
99#define NEED_CREATETHREAD
100#define NEED_ERRNO
101#define NEED_CALLOC
102#define NEED_FTIME
103//#define NEED_SEM
104#define NEED_UNICODE_CONSTS
105#define NEED_PROCESS_AFFINITY_MASK
106#endif
107
108#ifdef _UWIN
109#define HAVE_MODE_T
110#define HAVE_STRUCT_TIMESPEC
111#endif
112
113#ifdef __GNUC__
114#define HAVE_C_INLINE
115#endif
116
117#ifdef __MINGW32__
118#define HAVE_MODE_T
119#endif
120
121#ifdef __BORLANDC__
122#endif
123
124#ifdef __WATCOMC__
125#endif
126
127#ifdef __DMC__
128#define HAVE_SIGNAL_H
129#define HAVE_C_INLINE
130#endif
131
132
133
134#endif
Note: See TracBrowser for help on using the repository browser.