WIN-02: get boehm-gc autodetect if it is compiled as a DLL
Adam Megacz
patches@lists.megacz.com
Thu Jan 31 15:25:00 GMT 2002
"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
More information about the Java-patches
mailing list