This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
WIN-02: get boehm-gc autodetect if it is compiled as a DLL
- From: Adam Megacz <patches at lists dot megacz dot com>
- To: java-patches at gcc dot gnu dot org
- Date: 31 Jan 2002 01:32:14 -0800
- Subject: WIN-02: get boehm-gc autodetect if it is compiled as a DLL
- Organization: Myself
2002-01-31 Adam Megacz <adam@xwt.org>
* boehm-gc on win32 now automatically detects if it is being
built as a DLL; see http://gcc.gnu.org/ml/java/2001-12/msg00240.html
*** 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(GC_WIN32_THREADS) && defined(_DLL)
# ifdef GC_BUILD
# define GC_API __declspec(dllexport)
# else
***************
*** 95,101 ****
#endif
#if (defined(__DMC__) || defined(_MSC_VER)) \
! && (defined(_DLL) && !defined(GC_NOT_DLL) \
|| defined(GC_DLL))
# ifdef GC_BUILD
# define GC_API extern __declspec(dllexport)
--- 95,101 ----
#endif
#if (defined(__DMC__) || defined(_MSC_VER)) \
! && (defined(_DLL) && defined(_DLL) \
|| defined(GC_DLL))
# ifdef GC_BUILD
# define GC_API extern __declspec(dllexport)