changeset 518:94f334d9be6e

* common/eCosThreadUtils.cpp: Use "try" rather than "__try" for Cygwin builds.
author jld
date Mon, 20 Jan 2003 16:01:26 +0000
parents 2b2d9aa25330
children b343e9046a6c
files host/tools/Utils/ChangeLog host/tools/Utils/common/eCosThreadUtils.cpp
diffstat 2 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/host/tools/Utils/ChangeLog
+++ b/host/tools/Utils/ChangeLog
@@ -1,5 +1,8 @@
 2003-01-20  John Dallaway  <jld@ecoscentric.com>
 
+	* common/eCosThreadUtils.cpp:
+	Use "try" rather than "__try" for Cygwin builds.
+
 	* common/eCosStd.h:
 	#include winsock2.h and process.h for Cygwin builds.
 
--- a/host/tools/Utils/common/eCosThreadUtils.cpp
+++ b/host/tools/Utils/common/eCosThreadUtils.cpp
@@ -147,7 +147,7 @@ CeCosThreadUtils::THREADFUNC CALLBACK Ce
   THREAD_ID id=GetThreadId();
   ThreadInfo *pInfo=(ThreadInfo*)pParam;
   TRACE(_T("Thread %x [%s] created\n"),id,(LPCTSTR)pInfo->strName);
-#ifdef _WIN32
+#if defined(_WIN32) && !defined(__CYGWIN__)
   __try {
     // Call what we are instructed to (e.g. LocalThreadFunc):
     pInfo->pThreadFunc(pInfo->pThreadParam);