From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19762 invoked by alias); 28 Dec 2006 21:41:51 -0000 Received: (qmail 19750 invoked by uid 22791); 28 Dec 2006 21:41:49 -0000 X-Spam-Check-By: sourceware.org Received: from mail.freax.org (HELO mail.freax.org) (86.39.154.66) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 28 Dec 2006 21:41:39 +0000 Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.freax.org (Postfix) with ESMTP id F06F4187E1D for ; Thu, 28 Dec 2006 22:29:24 +0100 (CET) Received: from mail.freax.org ([127.0.0.1]) by localhost (mail.freax.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QqbG9Qr+W7af for ; Thu, 28 Dec 2006 22:29:24 +0100 (CET) Received: from [192.168.1.100] (d54C0EE14.access.telenet.be [84.192.238.20]) (using SSLv3 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail.freax.org (Postfix) with ESMTP id BB229187D0B for ; Thu, 28 Dec 2006 22:29:22 +0100 (CET) Subject: Compiling for WinCE attempt 2 From: Philip Van Hoof To: pthreads-win32@sourceware.org Content-Type: multipart/mixed; boundary="=-IkHtAT1JzZ4LjUjsgMQ5" Date: Thu, 28 Dec 2006 21:41:00 -0000 Message-Id: <1167342093.4875.25.camel@lort> Mime-Version: 1.0 X-Mailer: Evolution 2.8.1 X-IsSubscribed: yes Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org X-SW-Source: 2006/txt/msg00082.txt.bz2 --=-IkHtAT1JzZ4LjUjsgMQ5 Content-Type: text/plain Content-Transfer-Encoding: 7bit Content-length: 7346 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 --=-IkHtAT1JzZ4LjUjsgMQ5 Content-Disposition: attachment; filename=wince.diff Content-Type: text/x-patch; name=wince.diff; charset=UTF-8 Content-Transfer-Encoding: 7bit Content-length: 10777 ? 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 +#include #include #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 +#include #include #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 +#include #include #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 +#include #include #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 +#include #include #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 +#include #include #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 +#include #include #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 +#include #include #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 +#include #include #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 +#include #include #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 +#include #include #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 +#include #include #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 +#include #include #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 +//# include +#include #elif defined(__WATCOMC__) -# include +//# include # include 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 --=-IkHtAT1JzZ4LjUjsgMQ5--