summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrpj <rpj>2005-05-27 14:51:00 +0000
committerrpj <rpj>2005-05-27 14:51:00 +0000
commit3cbb649e9987e4ed8b3dab44656b88450c59dcc8 (patch)
tree63a006a6bfb2cc9b03497db03ba2c75be03633fb
parent95cd20cdab9cb516e2279bec4d25f1a55acaebd6 (diff)
''
-rw-r--r--ChangeLog5
-rw-r--r--NEWS6
-rw-r--r--pthread.h38
3 files changed, 14 insertions, 35 deletions
diff --git a/ChangeLog b/ChangeLog
index 8f8dc14..ee36470 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-05-27 Alexander Gottwald <alexander.gottwald at s1999.tu-chemnitz.de>
+
+ * pthread.h: Some things, like HANDLE, were only defined if
+ PTW32_LEVEL was >= 3. They should always be defined.
+
2005-05-24 Mikael Magnusson <mikaelmagnusson at glocalnet.net>
* GNUmakefile: Patched to allow cross-compile with mingw32 on Linux.
diff --git a/NEWS b/NEWS
index d0c7159..bf301e9 100644
--- a/NEWS
+++ b/NEWS
@@ -10,6 +10,12 @@ version 2 releases, including all bug fixes and enhanced compliance. The
difference is that the version 1 pthread_once routine may be significantly
less efficient in some situations.
+Testing and verification
+------------------------
+This release has been tested (passed the test suite) on both uni-processor
+and multi-processor systems.
+- Tim Theisen
+
New features
------------
* Support for Mingw cross development tools added to GNUmakefile.
diff --git a/pthread.h b/pthread.h
index cbd1b83..1497c38 100644
--- a/pthread.h
+++ b/pthread.h
@@ -37,8 +37,8 @@
* See the README file for an explanation of the pthreads-win32 version
* numbering scheme and how the DLL is named etc.
*/
-#define PTW32_VERSION 1,10,0,0
-#define PTW32_VERSION_STRING "1, 10, 0, 0\0"
+#define PTW32_VERSION 1,11,0,0
+#define PTW32_VERSION_STRING "1, 11, 0, 0\0"
/* There are three implementations of cancel cleanup.
* Note that pthread.h is included in both application
@@ -191,15 +191,6 @@
/* Try to avoid including windows.h */
#if defined(__MINGW32__) && defined(__cplusplus)
-/*
- * FIXME: The pthreadGCE.dll build gets linker unresolved errors
- * on pthread_key_create() unless windows.h is included here.
- * It appears to have something to do with an argument type mismatch.
- * Looking at tsd.o with 'nm' shows this line:
- * 00000000 T _pthread_key_create__FPP14pthread_key_t_PFPv_v
- * instead of
- * 00000000 T _pthread_key_create
- */
#define PTW32_INCLUDE_WINDOWS_H
#endif
@@ -223,26 +214,6 @@ typedef unsigned long DWORD_PTR;
#include "config.h"
#endif /* HAVE_CONFIG_H */
-#if PTW32_LEVEL >= PTW32_LEVEL_MAX
-
-/* Try to avoid including windows.h */
-#if defined(__MINGW32__) && defined(__cplusplus)
-/*
- * FIXME: The pthreadGCE.dll build gets linker unresolved errors
- * on pthread_key_create() unless windows.h is included here.
- * It appears to have something to do with an argument type mismatch.
- * Looking at tsd.o with 'nm' shows this line:
- * 00000000 T _pthread_key_create__FPP14pthread_key_t_PFPv_v
- * instead of
- * 00000000 T _pthread_key_create
- */
-#define PTW32_INCLUDE_WINDOWS_H
-#endif
-
-#ifdef PTW32_INCLUDE_WINDOWS_H
-#include <windows.h>
-#endif
-
#ifndef NEED_FTIME
#include <time.h>
#else /* NEED_FTIME */
@@ -318,8 +289,7 @@ enum {
/*
* To avoid including windows.h we define only those things that we
- * actually need from it. I don't like the potential incompatibility that
- * this creates with future versions of windows.
+ * actually need from it.
*/
#ifndef PTW32_INCLUDE_WINDOWS_H
#ifndef HANDLE
@@ -332,8 +302,6 @@ enum {
#endif
#endif
-#endif /* PTW32_LEVEL >= PTW32_LEVEL_MAX */
-
#ifndef HAVE_STRUCT_TIMESPEC
#define HAVE_STRUCT_TIMESPEC 1
struct timespec {