This is the mail archive of the
pthreads-win32@sources.redhat.com
mailing list for the pthreas-win32 project.
Re: change for Digital Mars Compiler
- From: Anuj Goyal <anuj dot goyal at gmail dot com>
- To: pthreads-win32 at sources dot redhat dot com
- Date: Wed, 30 Jun 2004 01:12:40 -0700
- Subject: Re: change for Digital Mars Compiler
- References: <2f225d01040613003229fdd370@mail.gmail.com>
Ross,
I have made a few other changes that should allow digital mars to
build the win32-pthread library (at least with C cleanup, the C++ and
SEH ones will come later)
/* config.h */
83 #ifdef __DMC__
84 #define HAVE_SIGNAL_H
85 #define HAVE_C_INLINE
86 #endif
This rest of the stuff is from grep, let me know if you have trouble
merging it. It's not the cleanest code, but the changes are pretty
basic.
create.c:171:#if ! defined (__MINGW32__) || defined (__MSVCRT__) ||
defined (__DMC__)
pthread_exit.c:91:#if ! defined (__MINGW32__) || defined (__MSVCRT__)
|| defined (__DMC__)
pthread_join.c:121:#if ! defined (__MINGW32__) || defined (__MSVCRT__)
|| defined (__DMC__)
ptw32_threadDestroy.c:75:#if ! defined (__MINGW32__) || defined
(__MSVCRT__) || defined (__DMC__)
ptw32_threadStart.c:125:#if ! defined (__MINGW32__) || (defined
(__MSVCRT__) && ! (__DMC__))
ptw32_threadStart.c:361:#if ! defined (__MINGW32__) || defined
(__MSVCRT__) || defined (__DMC__)
ptw32_threadStart.c:371:#if ! defined (__MINGW32__) || defined
(__MSVCRT__) || defined (__DMC__)
ptw32_throw.c:89:#if ! defined (__MINGW32__) || defined (__MSVCRT__)
|| (__DMC__)
could you put these two in a dmc.bat file? At some point, I will make
a proper mak file, but these work for now.
/* RELEASE */
dmc -D_WIN32_WINNT -D_MT -DHAVE_CONFIG_H -I.;c:\dm\include -o+all -WD
pthread.c user32.lib+kernel32.lib+wsock32.lib -L/impl -L/NODEBUG
-L/SU:WINDOWS
/* DEBUG */
dmc -g -D_WIN32_WINNT -D_MT -DHAVE_CONFIG_H -I.;c:\dm\include -o+all
-WD pthread.c user32.lib+kernel32.lib+wsock32.lib -L/impl
-L/SU:WINDOWS