This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
RE: WIN-02: get boehm-gc autodetect if it is compiled as a DLL
- From: "Boehm, Hans" <hans_boehm at hp dot com>
- To: "'Adam Megacz'" <patches at lists dot megacz dot com>, java-patches at gcc dot gnu dot org
- Date: Thu, 31 Jan 2002 16:20:18 -0800
- Subject: RE: WIN-02: get boehm-gc autodetect if it is compiled as a DLL
Looks fine to me. (I'd add a space after the first &&.)
Hans
> -----Original Message-----
> From: Adam Megacz [mailto:patches@lists.megacz.com]
> Sent: Thursday, January 31, 2002 3:21 PM
> To: java-patches@gcc.gnu.org
> Subject: Re: WIN-02: get boehm-gc autodetect if it is
> compiled as a DLL
>
>
>
> "Boehm, Hans" <hans_boehm@hp.com> writes:
> > > > Should the first test just be
>
> > > > #if defined(__MINGW32__) && defined(_DLL) &&
> !defined(GC_NOT_DLL)
>
> > > Yes, that should work.
>
> > Did that in my tree.
>
> Cool -- here is the revised patch. Approval?
>
> - a
>
>
> *** gc.h Fri Jan 25 10:06:23 2002
> --- gc.h Thu Jan 31 01:20:15 2002
> ***************
> *** 86,92 ****
> typedef long ptrdiff_t; /* ptrdiff_t is not defined */
> # endif
>
> ! #if defined(__MINGW32__) && defined(GC_WIN32_THREADS)
> # ifdef GC_BUILD
> # define GC_API __declspec(dllexport)
> # else
> --- 86,92 ----
> typedef long ptrdiff_t; /* ptrdiff_t is not defined */
> # endif
>
> ! #if defined(__MINGW32__) &&defined(_DLL) && !defined(GC_NOT_DLL)
> # ifdef GC_BUILD
> # define GC_API __declspec(dllexport)
> # else
>