/[pcsx2_0.9.7]/trunk/3rdparty/w32pthreads/config.h
ViewVC logotype

Contents of /trunk/3rdparty/w32pthreads/config.h

Parent Directory Parent Directory | Revision Log Revision Log


Revision 10 - (show annotations) (download)
Mon Sep 6 11:40:06 2010 UTC (9 years, 5 months ago) by william
File MIME type: text/plain
File size: 4067 byte(s)
exported r3113 from ./upstream/trunk
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 #define 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 // PCSX2 : This is preferred when using the shared CRT, which we do! -- air
27 #define NEED_CREATETHREAD
28
29 /* Define if you don't have Win32 errno. (eg. WinCE) */
30 #undef NEED_ERRNO
31
32 /* Define if you don't have Win32 calloc. (eg. WinCE) */
33 #undef NEED_CALLOC
34
35 /* Define if you don't have Win32 ftime. (eg. WinCE) */
36 #undef NEED_FTIME
37
38 /* Define if you don't have Win32 semaphores. (eg. WinCE 2.1 or earlier) */
39 #undef NEED_SEM
40
41 /* Define if you need to convert string parameters to unicode. (eg. WinCE) */
42 #undef NEED_UNICODE_CONSTS
43
44 /* Define if your C (not C++) compiler supports "inline" functions. */
45 #define HAVE_C_INLINE
46
47 /* Do we know about type mode_t? */
48 #undef HAVE_MODE_T
49
50 /* Define if you have the timespec struct */
51 #undef HAVE_STRUCT_TIMESPEC
52
53 /* Define if you don't have the GetProcessAffinityMask() */
54 #undef NEED_PROCESS_AFFINITY_MASK
55
56 /*
57 # ----------------------------------------------------------------------
58 # The library can be built with some alternative behaviour to better
59 # facilitate development of applications on Win32 that will be ported
60 # to other POSIX systems.
61 #
62 # Nothing described here will make the library non-compliant and strictly
63 # compliant applications will not be affected in any way, but
64 # applications that make assumptions that POSIX does not guarantee are
65 # not strictly compliant and may fail or misbehave with some settings.
66 #
67 # PTW32_THREAD_ID_REUSE_INCREMENT
68 # Purpose:
69 # POSIX says that applications should assume that thread IDs can be
70 # recycled. However, Solaris (and some other systems) use a [very large]
71 # sequence number as the thread ID, which provides virtual uniqueness.
72 # This provides a very high but finite level of safety for applications
73 # that are not meticulous in tracking thread lifecycles e.g. applications
74 # that call functions which target detached threads without some form of
75 # thread exit synchronisation.
76 #
77 # Usage:
78 # Set to any value in the range: 0 <= value < 2^wordsize.
79 # Set to 0 to emulate reusable thread ID behaviour like Linux or *BSD.
80 # Set to 1 for unique thread IDs like Solaris (this is the default).
81 # Set to some factor of 2^wordsize to emulate smaller word size types
82 # (i.e. will wrap sooner). This might be useful to emulate some embedded
83 # systems.
84 #
85 # define PTW32_THREAD_ID_REUSE_INCREMENT 0
86 #
87 # ----------------------------------------------------------------------
88 */
89 #undef PTW32_THREAD_ID_REUSE_INCREMENT
90
91
92 /*********************************************************************
93 * Target specific groups
94 *
95 * If you find that these are incorrect or incomplete please report it
96 * to the pthreads-win32 maintainer. Thanks.
97 *********************************************************************/
98 #ifdef WINCE
99 #define NEED_DUPLICATEHANDLE
100 #define NEED_CREATETHREAD
101 #define NEED_ERRNO
102 #define NEED_CALLOC
103 #define NEED_FTIME
104 //#define NEED_SEM
105 #define NEED_UNICODE_CONSTS
106 #define NEED_PROCESS_AFFINITY_MASK
107 #endif
108
109 #ifdef _UWIN
110 #define HAVE_MODE_T
111 #define HAVE_STRUCT_TIMESPEC
112 #endif
113
114 #ifdef __GNUC__
115 #define HAVE_C_INLINE
116 #endif
117
118 #ifdef __MINGW32__
119 #define HAVE_MODE_T
120 #endif
121
122 #ifdef __BORLANDC__
123 #endif
124
125 #ifdef __WATCOMC__
126 #endif
127
128 #ifdef __DMC__
129 #define HAVE_SIGNAL_H
130 #define HAVE_C_INLINE
131 #endif
132
133
134
135 #endif

  ViewVC Help
Powered by ViewVC 1.1.22