summaryrefslogtreecommitdiff
path: root/libs/pthreads/src/config.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/pthreads/src/config.h')
-rw-r--r--libs/pthreads/src/config.h52
1 files changed, 24 insertions, 28 deletions
diff --git a/libs/pthreads/src/config.h b/libs/pthreads/src/config.h
index e63ce2da46..2edf4f4152 100644
--- a/libs/pthreads/src/config.h
+++ b/libs/pthreads/src/config.h
@@ -7,9 +7,12 @@
* Defaults: see target specific redefinitions below.
*********************************************************************/
-/* We're building the pthreads-win32 library */
+/* We're building the Pthreads4w library */
#define PTW32_BUILD
+/* CPU affinity */
+#define HAVE_CPU_AFFINITY
+
/* Do we know about the C type sigset_t? */
#undef HAVE_SIGSET_T
@@ -31,9 +34,6 @@
/* Define if you don't have Win32 calloc. (eg. WinCE) */
#undef NEED_CALLOC
-/* Define if you don't have Win32 ftime. (eg. WinCE) */
-#undef NEED_FTIME
-
/* Define if you don't have Win32 semaphores. (eg. WinCE 2.1 or earlier) */
#undef NEED_SEM
@@ -46,7 +46,7 @@
/* Do we know about type mode_t? */
#undef HAVE_MODE_T
-/*
+/*
* Define if GCC has atomic builtins, i.e. __sync_* intrinsics
* __sync_lock_* is implemented in mingw32 gcc 4.5.2 at least
* so this define does not turn those on or off. If you get an
@@ -55,7 +55,7 @@
#undef HAVE_GCC_ATOMIC_BUILTINS
/* Define if you have the timespec struct */
-#define HAVE_STRUCT_TIMESPEC 1
+#undef HAVE_STRUCT_TIMESPEC
/* Define if you don't have the GetProcessAffinityMask() */
#undef NEED_PROCESS_AFFINITY_MASK
@@ -106,35 +106,29 @@
* Target specific groups
*
* If you find that these are incorrect or incomplete please report it
- * to the pthreads-win32 maintainer. Thanks.
+ * to the Pthreads4w maintainer. Thanks.
*********************************************************************/
#if defined(WINCE)
-#define NEED_DUPLICATEHANDLE
-#define NEED_CREATETHREAD
-#define NEED_ERRNO
-#define NEED_CALLOC
-#define NEED_FTIME
-/* #define NEED_SEM */
-#define NEED_UNICODE_CONSTS
-#define NEED_PROCESS_AFFINITY_MASK
+# undef HAVE_CPU_AFFINITY
+# define NEED_DUPLICATEHANDLE
+# define NEED_CREATETHREAD
+# define NEED_ERRNO
+# define NEED_CALLOC
+/* # define NEED_SEM */
+# define NEED_UNICODE_CONSTS
+# define NEED_PROCESS_AFFINITY_MASK
/* This may not be needed */
-#define RETAIN_WSALASTERROR
+# define RETAIN_WSALASTERROR
#endif
#if defined(_UWIN)
-#define HAVE_MODE_T
-#define HAVE_STRUCT_TIMESPEC
+# define HAVE_MODE_T
+# define HAVE_STRUCT_TIMESPEC
+# define HAVE_SIGNAL_H
#endif
#if defined(__GNUC__)
-#define HAVE_C_INLINE
-#endif
-
-#if defined(__MINGW64__)
-#define HAVE_MODE_T
-#define HAVE_STRUCT_TIMESPEC
-#elif defined(__MINGW32__)
-#define HAVE_MODE_T
+# define HAVE_C_INLINE
#endif
#if defined(__BORLANDC__)
@@ -148,6 +142,8 @@
#define HAVE_C_INLINE
#endif
-
-
+#if defined(_MSC_VER) && _MSC_VER >= 1900
+#define HAVE_STRUCT_TIMESPEC
#endif
+
+#endif /* PTW32_CONFIG_H */