From e3a8f6aec5bea99285d586524372247323bfdd3c Mon Sep 17 00:00:00 2001 From: Juan Jose Garcia Ripoll Date: Thu, 1 Oct 2009 16:04:13 +0200 Subject: [PATCH] * msvc/ecl/config.msvc6: export ECL_WINDOWS_THREADS macro * src/h/config.h: define GC_THREADS when using the garbage collector and threads. --- msvc/ecl/config.h.msvc6 | 2 ++ src/h/config.h.in | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/msvc/ecl/config.h.msvc6 b/msvc/ecl/config.h.msvc6 index f46ddb633..b34ffcec8 100644 --- a/msvc/ecl/config.h.msvc6 +++ b/msvc/ecl/config.h.msvc6 @@ -61,6 +61,8 @@ #define ECL_THREADS @ECL_THREADS@ #if ECL_THREADS # define GC_WIN32_THREADS +# define GC_THREADS +# define ECL_WINDOWS_THREADS #else # undef ECL_THREADS #endif diff --git a/src/h/config.h.in b/src/h/config.h.in index f4dc83ecd..70e7f42d8 100644 --- a/src/h/config.h.in +++ b/src/h/config.h.in @@ -74,10 +74,12 @@ #undef GBC_BOEHM #ifdef GBC_BOEHM # ifdef ECL_WINDOWS_THREADS -# define GC_WIN32_THREADS +# define GC_WIN32_THREADS /* For older versions */ +# define GC_THREADS /* For >= 7.2 */ # else # ifdef ECL_THREADS -# define GC_PTHREADS +# define GC_PTHREADS /* For older versions */ +# define GC_THREADS /* For >= 7.2 */ # endif # endif # define ECL_DYNAMIC_VV