public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
From: Philip Van Hoof <spam@pvanhoof.be>
To: pthreads-win32@sourceware.org
Subject: Compiling for WinCE attempt 2
Date: Thu, 28 Dec 2006 21:41:00 -0000	[thread overview]
Message-ID: <1167342093.4875.25.camel@lort> (raw)

[-- Attachment #1: Type: text/plain, Size: 7346 bytes --]


Ok, silly me was trying to compile with exception handling (EH) support
for cancellations without first reading about pthread-win32 vs. what
WinCE supports.

So I'm now using nmake VC in stead of the VCE target, and noticed that
some newer parts of pthread-win32 are again (contrary to what the WinCE
port once changed, according to its README file) including errno.h

Changing those to need_errno.h seems to fix that mostly. I attached that
patch. I'm not sure if an errno.h should be included, but if not I'm
guessing this is a little problem that can easily be fixed by replacing
them with need_errno.h? (actually .. I have no idea, I should study the
WinCE port first, I know)

I only have one problem remaining: winver.h does not exist in the
include dir of that PocketPC 2003 SDK.

I'm not really a Windows developer when it comes to C/C++, that I keep
for my Linux/Posix stuff, so If somebody here can enlighten me .. that
would be great ;-)

Thanks.

C:\cygwin\home\Philip Van Hoof\pthreads>nmake clean VC

Microsoft (R) Program Maintenance Utility   Version 6.00.8168.0
Copyright (C) Microsoft Corp 1988-1998. All rights reserved.

        if exist *.obj del *.obj
        if exist *.ilk del *.ilk
        if exist *.pdb del *.pdb
        if exist *.exp del *.exp
        if exist *.map del *.map
        if exist *.o del *.o
        if exist *.i del *.i
        if exist *.res del *.res
        cl /O2 /Ob2 /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
 /DWINCE -IC:\Include\Emulator /Zi /D DEBUG /D _i386_ /D UNDER_CE= /D i_386_ /D
UNICODE /D _UNICODE /D _X86_ /D x86 /c /D NEED_FTIME /D__CLEANUP_C -c attr.c
attr.c
        cl /O2 /Ob2 /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
 /DWINCE -IC:\Include\Emulator /Zi /D DEBUG /D _i386_ /D UNDER_CE= /D i_386_ /D
UNICODE /D _UNICODE /D _X86_ /D x86 /c /D NEED_FTIME /D__CLEANUP_C -c barrier.c
barrier.c
        cl /O2 /Ob2 /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
 /DWINCE -IC:\Include\Emulator /Zi /D DEBUG /D _i386_ /D UNDER_CE= /D i_386_ /D
UNICODE /D _UNICODE /D _X86_ /D x86 /c /D NEED_FTIME /D__CLEANUP_C -c cancel.c
cancel.c
        cl /O2 /Ob2 /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
 /DWINCE -IC:\Include\Emulator /Zi /D DEBUG /D _i386_ /D UNDER_CE= /D i_386_ /D
UNICODE /D _UNICODE /D _X86_ /D x86 /c /D NEED_FTIME /D__CLEANUP_C -c cleanup.c
cleanup.c
        cl /O2 /Ob2 /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
 /DWINCE -IC:\Include\Emulator /Zi /D DEBUG /D _i386_ /D UNDER_CE= /D i_386_ /D
UNICODE /D _UNICODE /D _X86_ /D x86 /c /D NEED_FTIME /D__CLEANUP_C -c condvar.c
condvar.c
        cl /O2 /Ob2 /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
 /DWINCE -IC:\Include\Emulator /Zi /D DEBUG /D _i386_ /D UNDER_CE= /D i_386_ /D
UNICODE /D _UNICODE /D _X86_ /D x86 /c /D NEED_FTIME /D__CLEANUP_C -c create.c
create.c
        cl /O2 /Ob2 /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
 /DWINCE -IC:\Include\Emulator /Zi /D DEBUG /D _i386_ /D UNDER_CE= /D i_386_ /D
UNICODE /D _UNICODE /D _X86_ /D x86 /c /D NEED_FTIME /D__CLEANUP_C -c dll.c
dll.c
        cl /O2 /Ob2 /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
 /DWINCE -IC:\Include\Emulator /Zi /D DEBUG /D _i386_ /D UNDER_CE= /D i_386_ /D
UNICODE /D _UNICODE /D _X86_ /D x86 /c /D NEED_FTIME /D__CLEANUP_C -c errno.c
errno.c
        cl /O2 /Ob2 /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
 /DWINCE -IC:\Include\Emulator /Zi /D DEBUG /D _i386_ /D UNDER_CE= /D i_386_ /D
UNICODE /D _UNICODE /D _X86_ /D x86 /c /D NEED_FTIME /D__CLEANUP_C -c exit.c
exit.c
        cl /O2 /Ob2 /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
 /DWINCE -IC:\Include\Emulator /Zi /D DEBUG /D _i386_ /D UNDER_CE= /D i_386_ /D
UNICODE /D _UNICODE /D _X86_ /D x86 /c /D NEED_FTIME /D__CLEANUP_C -c fork.c
fork.c
        cl /O2 /Ob2 /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
 /DWINCE -IC:\Include\Emulator /Zi /D DEBUG /D _i386_ /D UNDER_CE= /D i_386_ /D
UNICODE /D _UNICODE /D _X86_ /D x86 /c /D NEED_FTIME /D__CLEANUP_C -c global.c
global.c
        cl /O2 /Ob2 /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
 /DWINCE -IC:\Include\Emulator /Zi /D DEBUG /D _i386_ /D UNDER_CE= /D i_386_ /D
UNICODE /D _UNICODE /D _X86_ /D x86 /c /D NEED_FTIME /D__CLEANUP_C -c misc.c
misc.c
        cl /O2 /Ob2 /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
 /DWINCE -IC:\Include\Emulator /Zi /D DEBUG /D _i386_ /D UNDER_CE= /D i_386_ /D
UNICODE /D _UNICODE /D _X86_ /D x86 /c /D NEED_FTIME /D__CLEANUP_C -c mutex.c
mutex.c
        cl /O2 /Ob2 /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
 /DWINCE -IC:\Include\Emulator /Zi /D DEBUG /D _i386_ /D UNDER_CE= /D i_386_ /D
UNICODE /D _UNICODE /D _X86_ /D x86 /c /D NEED_FTIME /D__CLEANUP_C -c nonportabl
e.c
nonportable.c
        cl /O2 /Ob2 /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
 /DWINCE -IC:\Include\Emulator /Zi /D DEBUG /D _i386_ /D UNDER_CE= /D i_386_ /D
UNICODE /D _UNICODE /D _X86_ /D x86 /c /D NEED_FTIME /D__CLEANUP_C -c private.c
private.c
        cl /O2 /Ob2 /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
 /DWINCE -IC:\Include\Emulator /Zi /D DEBUG /D _i386_ /D UNDER_CE= /D i_386_ /D
UNICODE /D _UNICODE /D _X86_ /D x86 /c /D NEED_FTIME /D__CLEANUP_C -c rwlock.c
rwlock.c
        cl /O2 /Ob2 /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
 /DWINCE -IC:\Include\Emulator /Zi /D DEBUG /D _i386_ /D UNDER_CE= /D i_386_ /D
UNICODE /D _UNICODE /D _X86_ /D x86 /c /D NEED_FTIME /D__CLEANUP_C -c sched.c
sched.c
        cl /O2 /Ob2 /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
 /DWINCE -IC:\Include\Emulator /Zi /D DEBUG /D _i386_ /D UNDER_CE= /D i_386_ /D
UNICODE /D _UNICODE /D _X86_ /D x86 /c /D NEED_FTIME /D__CLEANUP_C -c semaphore.
c
semaphore.c
        cl /O2 /Ob2 /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
 /DWINCE -IC:\Include\Emulator /Zi /D DEBUG /D _i386_ /D UNDER_CE= /D i_386_ /D
UNICODE /D _UNICODE /D _X86_ /D x86 /c /D NEED_FTIME /D__CLEANUP_C -c signal.c
signal.c
        cl /O2 /Ob2 /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
 /DWINCE -IC:\Include\Emulator /Zi /D DEBUG /D _i386_ /D UNDER_CE= /D i_386_ /D
UNICODE /D _UNICODE /D _X86_ /D x86 /c /D NEED_FTIME /D__CLEANUP_C -c spin.c
spin.c
        cl /O2 /Ob2 /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
 /DWINCE -IC:\Include\Emulator /Zi /D DEBUG /D _i386_ /D UNDER_CE= /D i_386_ /D
UNICODE /D _UNICODE /D _X86_ /D x86 /c /D NEED_FTIME /D__CLEANUP_C -c sync.c
sync.c
        cl /O2 /Ob2 /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
 /DWINCE -IC:\Include\Emulator /Zi /D DEBUG /D _i386_ /D UNDER_CE= /D i_386_ /D
UNICODE /D _UNICODE /D _X86_ /D x86 /c /D NEED_FTIME /D__CLEANUP_C -c tsd.c
tsd.c
        rc /dPTW32_RC_MSC /d__CLEANUP_C version.rc
version.rc(33) : fatal error RC1015: cannot open include file 'winver.h'.
NMAKE : fatal error U1077: 'rc' : return code '0x1'
Stop.
NMAKE : fatal error U1077: '"C:\Program Files\Microsoft eMbedded C++ 4.0\Common\
EVC\Bin\NMAKE.EXE"' : return code '0x2'
Stop.

C:\cygwin\home\Philip Van Hoof\pthreads>
-- 
Philip Van Hoof, software developer
home: me at pvanhoof dot be 
gnome: pvanhoof at gnome dot org 
http://www.pvanhoof.be/blog




[-- Attachment #2: wince.diff --]
[-- Type: text/x-patch, Size: 10777 bytes --]

? RCa01092
? process.h
? signal.h
? vc60.pdb
Index: Makefile
===================================================================
RCS file: /cvs/pthreads-win32/pthreads/Makefile,v
retrieving revision 1.41
diff -u -r1.41 Makefile
--- Makefile	3 Jun 2005 08:36:27 -0000	1.41
+++ Makefile	28 Dec 2006 21:34:08 -0000
@@ -27,7 +27,10 @@
 OPTIM	= /O2 /Ob2
 OPTIMD	=
 
-CFLAGS	= /W3 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H
+CFLAGS	= /W0 /MD /nologo /Yd /I. /D_WIN32_WINNT=0x400 /DHAVE_CONFIG_H /DWINCE -IC:\Include\Emulator 
+
+CFLAGS = $(CFLAGS) /Zi /D "DEBUG" /D "_i386_" /D UNDER_CE=$(CEVersion) /D "i_386_" /D "UNICODE" /D "_UNICODE" /D "_X86_" /D "x86" /c /D NEED_FTIME
+
 CFLAGSD	= /Zi $(CFLAGS)
 
 
Index: dll.c
===================================================================
RCS file: /cvs/pthreads-win32/pthreads/dll.c,v
retrieving revision 1.29
diff -u -r1.29 dll.c
--- dll.c	1 Apr 2005 00:55:21 -0000	1.29
+++ dll.c	28 Dec 2006 21:34:08 -0000
@@ -38,7 +38,8 @@
 
 #include "pthread.h"
 #include "implement.h"
-
+
+#if 0
 #ifdef _MSC_VER
 /* 
  * lpvReserved yields an unreferenced formal parameter;
@@ -90,3 +91,4 @@
 }				/* DllMain */
 
 #endif /* PTW32_STATIC_LIB */
+#endif
Index: implement.h
===================================================================
RCS file: /cvs/pthreads-win32/pthreads/implement.h,v
retrieving revision 1.117
diff -u -r1.117 implement.h
--- implement.h	3 Jun 2005 08:36:27 -0000	1.117
+++ implement.h	28 Dec 2006 21:34:09 -0000
@@ -695,12 +695,12 @@
                        arg, \
                        flags, \
                        pid) \
-        CreateThread(security, \
+        CreateThread((struct _SECURITY_ATTRIBUTES *) security, \
                      stack_size, \
                      (LPTHREAD_START_ROUTINE) start_proc, \
                      arg, \
                      flags, \
-                     pid)
+                     (unsigned long *) pid)
 
 #define _endthreadex ExitThread
 
Index: need_errno.h
===================================================================
RCS file: /cvs/pthreads-win32/pthreads/need_errno.h,v
retrieving revision 1.3
diff -u -r1.3 need_errno.h
--- need_errno.h	14 Aug 2000 03:43:09 -0000	1.3
+++ need_errno.h	28 Dec 2006 21:34:09 -0000
@@ -62,12 +62,12 @@
 
 /* declare reference to errno */
 
-#if     (defined(_MT) || defined(_MD) || defined(_DLL)) && !defined(_MAC)
-_CRTIMP extern int * __cdecl _errno(void);
-#define errno   (*_errno())
-#else   /* ndef _MT && ndef _MD && ndef _DLL */
+//#if     (defined(_MT) || defined(_MD) || defined(_DLL)) && !defined(_MAC)
+//_CRTIMP extern int * __cdecl _errno(void);
+//#define errno   (*_errno())
+//#else   /* ndef _MT && ndef _MD && ndef _DLL */
 _CRTIMP extern int errno;
-#endif  /* _MT || _MD || _DLL */
+//#endif  /* _MT || _MD || _DLL */
 
 /* Error Codes */
 
Index: pthread_rwlock_destroy.c
===================================================================
RCS file: /cvs/pthreads-win32/pthreads/pthread_rwlock_destroy.c,v
retrieving revision 1.5
diff -u -r1.5 pthread_rwlock_destroy.c
--- pthread_rwlock_destroy.c	1 Jan 2005 14:36:17 -0000	1.5
+++ pthread_rwlock_destroy.c	28 Dec 2006 21:34:12 -0000
@@ -34,7 +34,7 @@
  *      59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  */
 
-#include <errno.h>
+#include <need_errno.h>
 #include <limits.h>
 
 #include "pthread.h"
Index: pthread_rwlock_init.c
===================================================================
RCS file: /cvs/pthreads-win32/pthreads/pthread_rwlock_init.c,v
retrieving revision 1.5
diff -u -r1.5 pthread_rwlock_init.c
--- pthread_rwlock_init.c	1 Jan 2005 14:36:17 -0000	1.5
+++ pthread_rwlock_init.c	28 Dec 2006 21:34:12 -0000
@@ -34,7 +34,7 @@
  *      59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  */
 
-#include <errno.h>
+#include <need_errno.h>
 #include <limits.h>
 
 #include "pthread.h"
Index: pthread_rwlock_rdlock.c
===================================================================
RCS file: /cvs/pthreads-win32/pthreads/pthread_rwlock_rdlock.c,v
retrieving revision 1.5
diff -u -r1.5 pthread_rwlock_rdlock.c
--- pthread_rwlock_rdlock.c	1 Jan 2005 14:36:17 -0000	1.5
+++ pthread_rwlock_rdlock.c	28 Dec 2006 21:34:12 -0000
@@ -34,7 +34,7 @@
  *      59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  */
 
-#include <errno.h>
+#include <need_errno.h>
 #include <limits.h>
 
 #include "pthread.h"
Index: pthread_rwlock_timedrdlock.c
===================================================================
RCS file: /cvs/pthreads-win32/pthreads/pthread_rwlock_timedrdlock.c,v
retrieving revision 1.5
diff -u -r1.5 pthread_rwlock_timedrdlock.c
--- pthread_rwlock_timedrdlock.c	1 Jan 2005 14:36:17 -0000	1.5
+++ pthread_rwlock_timedrdlock.c	28 Dec 2006 21:34:12 -0000
@@ -34,7 +34,7 @@
  *      59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  */
 
-#include <errno.h>
+#include <need_errno.h>
 #include <limits.h>
 
 #include "pthread.h"
Index: pthread_rwlock_timedwrlock.c
===================================================================
RCS file: /cvs/pthreads-win32/pthreads/pthread_rwlock_timedwrlock.c,v
retrieving revision 1.5
diff -u -r1.5 pthread_rwlock_timedwrlock.c
--- pthread_rwlock_timedwrlock.c	1 Jan 2005 14:36:17 -0000	1.5
+++ pthread_rwlock_timedwrlock.c	28 Dec 2006 21:34:12 -0000
@@ -34,7 +34,7 @@
  *      59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  */
 
-#include <errno.h>
+#include <need_errno.h>
 #include <limits.h>
 
 #include "pthread.h"
Index: pthread_rwlock_tryrdlock.c
===================================================================
RCS file: /cvs/pthreads-win32/pthreads/pthread_rwlock_tryrdlock.c,v
retrieving revision 1.5
diff -u -r1.5 pthread_rwlock_tryrdlock.c
--- pthread_rwlock_tryrdlock.c	1 Jan 2005 14:36:17 -0000	1.5
+++ pthread_rwlock_tryrdlock.c	28 Dec 2006 21:34:13 -0000
@@ -34,7 +34,7 @@
  *      59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  */
 
-#include <errno.h>
+#include <need_errno.h>
 #include <limits.h>
 
 #include "pthread.h"
Index: pthread_rwlock_trywrlock.c
===================================================================
RCS file: /cvs/pthreads-win32/pthreads/pthread_rwlock_trywrlock.c,v
retrieving revision 1.5
diff -u -r1.5 pthread_rwlock_trywrlock.c
--- pthread_rwlock_trywrlock.c	1 Jan 2005 14:36:17 -0000	1.5
+++ pthread_rwlock_trywrlock.c	28 Dec 2006 21:34:13 -0000
@@ -34,7 +34,7 @@
  *      59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  */
 
-#include <errno.h>
+#include <need_errno.h>
 #include <limits.h>
 
 #include "pthread.h"
Index: pthread_rwlock_unlock.c
===================================================================
RCS file: /cvs/pthreads-win32/pthreads/pthread_rwlock_unlock.c,v
retrieving revision 1.5
diff -u -r1.5 pthread_rwlock_unlock.c
--- pthread_rwlock_unlock.c	1 Jan 2005 14:36:17 -0000	1.5
+++ pthread_rwlock_unlock.c	28 Dec 2006 21:34:13 -0000
@@ -34,7 +34,7 @@
  *      59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  */
 
-#include <errno.h>
+#include <need_errno.h>
 #include <limits.h>
 
 #include "pthread.h"
Index: pthread_rwlock_wrlock.c
===================================================================
RCS file: /cvs/pthreads-win32/pthreads/pthread_rwlock_wrlock.c,v
retrieving revision 1.6
diff -u -r1.6 pthread_rwlock_wrlock.c
--- pthread_rwlock_wrlock.c	1 Jan 2005 14:36:17 -0000	1.6
+++ pthread_rwlock_wrlock.c	28 Dec 2006 21:34:13 -0000
@@ -34,7 +34,7 @@
  *      59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  */
 
-#include <errno.h>
+#include <need_errno.h>
 #include <limits.h>
 
 #include "pthread.h"
Index: pthread_rwlockattr_destroy.c
===================================================================
RCS file: /cvs/pthreads-win32/pthreads/pthread_rwlockattr_destroy.c,v
retrieving revision 1.5
diff -u -r1.5 pthread_rwlockattr_destroy.c
--- pthread_rwlockattr_destroy.c	1 Jan 2005 14:36:17 -0000	1.5
+++ pthread_rwlockattr_destroy.c	28 Dec 2006 21:34:13 -0000
@@ -34,7 +34,7 @@
  *      59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  */
 
-#include <errno.h>
+#include <need_errno.h>
 #include <limits.h>
 
 #include "pthread.h"
Index: pthread_rwlockattr_getpshared.c
===================================================================
RCS file: /cvs/pthreads-win32/pthreads/pthread_rwlockattr_getpshared.c,v
retrieving revision 1.5
diff -u -r1.5 pthread_rwlockattr_getpshared.c
--- pthread_rwlockattr_getpshared.c	1 Jan 2005 14:36:17 -0000	1.5
+++ pthread_rwlockattr_getpshared.c	28 Dec 2006 21:34:13 -0000
@@ -34,7 +34,7 @@
  *      59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  */
 
-#include <errno.h>
+#include <need_errno.h>
 #include <limits.h>
 
 #include "pthread.h"
Index: pthread_rwlockattr_init.c
===================================================================
RCS file: /cvs/pthreads-win32/pthreads/pthread_rwlockattr_init.c,v
retrieving revision 1.5
diff -u -r1.5 pthread_rwlockattr_init.c
--- pthread_rwlockattr_init.c	1 Jan 2005 14:36:17 -0000	1.5
+++ pthread_rwlockattr_init.c	28 Dec 2006 21:34:13 -0000
@@ -34,7 +34,7 @@
  *      59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  */
 
-#include <errno.h>
+#include <need_errno.h>
 #include <limits.h>
 
 #include "pthread.h"
Index: pthread_rwlockattr_setpshared.c
===================================================================
RCS file: /cvs/pthreads-win32/pthreads/pthread_rwlockattr_setpshared.c,v
retrieving revision 1.5
diff -u -r1.5 pthread_rwlockattr_setpshared.c
--- pthread_rwlockattr_setpshared.c	1 Jan 2005 14:36:17 -0000	1.5
+++ pthread_rwlockattr_setpshared.c	28 Dec 2006 21:34:14 -0000
@@ -34,7 +34,7 @@
  *      59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
  */
 
-#include <errno.h>
+#include <need_errno.h>
 #include <limits.h>
 
 #include "pthread.h"
Index: ptw32_threadStart.c
===================================================================
RCS file: /cvs/pthreads-win32/pthreads/ptw32_threadStart.c,v
retrieving revision 1.10
diff -u -r1.10 ptw32_threadStart.c
--- ptw32_threadStart.c	15 May 2005 15:28:27 -0000	1.10
+++ ptw32_threadStart.c	28 Dec 2006 21:34:14 -0000
@@ -79,11 +79,13 @@
 }
 
 #elif defined(__CLEANUP_CXX)
+
 
 #if defined(_MSC_VER)
-# include <eh.h>
+//# include <eh.h>
+#include <stdio.h>
 #elif defined(__WATCOMC__)
-# include <eh.h>
+//# include <eh.h>
 # include <exceptio.h>
 typedef terminate_handler
   terminate_function;
@@ -102,6 +104,8 @@
 typedef terminate_handler
   terminate_function;
 #endif
+
+typedef terminate_handler terminate_function;
 
 static terminate_function
   ptw32_oldTerminate;
@@ -109,9 +113,9 @@
 void
 ptw32_terminate ()
 {
-  set_terminate (ptw32_oldTerminate);
+ // set_terminate (ptw32_oldTerminate);
   (void) pthread_win32_thread_detach_np ();
-  terminate ();
+  //terminate ();
 }
 
 #endif

                 reply	other threads:[~2006-12-28 21:41 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1167342093.4875.25.camel@lort \
    --to=spam@pvanhoof.be \
    --cc=pthreads-win32@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).