summaryrefslogtreecommitdiff
path: root/private.c
diff options
context:
space:
mode:
authorrpj <rpj>2000-08-22 08:28:24 +0000
committerrpj <rpj>2000-08-22 08:28:24 +0000
commitc1f7196a3b1d069248c8155e593b53ae44b24c62 (patch)
tree25b71b1a32d41fff86b10ac9a742b2a0c2dc2e22 /private.c
parenta994c398ae783efcae0d437b707654380f4dde03 (diff)
2000-08-22 Ross Johnson <rpj@setup1.ise.canberra.edu.au>
* private.c (ptw32_throw): Fix exception test; move exceptionInformation declaration. * tsd.c (pthread_key_create): newkey wrongly declared. * pthread.h: Fix comment block.
Diffstat (limited to 'private.c')
-rw-r--r--private.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/private.c b/private.c
index 905a7f6..37cb910 100644
--- a/private.c
+++ b/private.c
@@ -824,7 +824,13 @@ ptw32_get_exception_services_code(void)
void
ptw32_throw(DWORD exception)
{
- if (exception != PTW32_EPS_CANCEL ||
+#if defined(_MSC_VER) && !defined(__cplusplus)
+
+ DWORD exceptionInformation[3];
+
+#endif
+
+ if (exception != PTW32_EPS_CANCEL &&
exception != PTW32_EPS_EXIT)
{
/* Should never enter here */
@@ -833,8 +839,6 @@ ptw32_throw(DWORD exception)
#if defined(_MSC_VER) && !defined(__cplusplus)
- DWORD exceptionInformation[3];
-
exceptionInformation[0] = (DWORD) (exception);
exceptionInformation[1] = (DWORD) (0);
exceptionInformation[2] = (DWORD) (0);