public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
From: Anuj Goyal <anuj.goyal@gmail.com>
To: pthreads-win32@sources.redhat.com
Subject: Re: change for Digital Mars Compiler
Date: Wed, 30 Jun 2004 08:12:00 -0000	[thread overview]
Message-ID: <2f225d010406300112163ecb8@mail.gmail.com> (raw)
In-Reply-To: <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

      reply	other threads:[~2004-06-30  8:12 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-13  7:32 Anuj Goyal
2004-06-30  8:12 ` Anuj Goyal [this message]

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=2f225d010406300112163ecb8@mail.gmail.com \
    --to=anuj.goyal@gmail.com \
    --cc=pthreads-win32@sources.redhat.com \
    /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).