summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndy Wingo <wingo@pobox.com>2013-03-09 22:27:59 +0100
committerAndy Wingo <wingo@pobox.com>2013-03-09 22:27:59 +0100
commiteac7a5d03909291e62c671ead3d1c6a0ff84d4f0 (patch)
tree5ce04e8cb93fd8f3895a3819bf8fef574460a686
parent44e30ef241e342406d69c7d9c480c630d6106612 (diff)
downloadguile-eac7a5d03909291e62c671ead3d1c6a0ff84d4f0.tar.gz
if we have threads on windows, we have pthreads; inform bdw-gc of that
* libguile/bdw-gc.h: If we have threads enabled on mingw32, explicitly mark GC_WIN32_PTHREADS. See http://thread.gmane.org/gmane.comp.programming.garbage-collection.boehmgc/5564 for more info.
-rw-r--r--libguile/bdw-gc.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libguile/bdw-gc.h b/libguile/bdw-gc.h
index 2e1fce27b..7aa757fed 100644
--- a/libguile/bdw-gc.h
+++ b/libguile/bdw-gc.h
@@ -1,7 +1,7 @@
#ifndef SCM_BDW_GC_H
#define SCM_BDW_GC_H
-/* Copyright (C) 2006, 2008, 2009, 2011, 2012 Free Software Foundation, Inc.
+/* Copyright (C) 2006, 2008, 2009, 2011, 2012, 2013 Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
@@ -37,6 +37,11 @@
routines. */
# define GC_NO_THREAD_REDIRECTS 1
+#ifdef __MINGW32__
+/* Rely on pthreads-w32. */
+#define GC_WIN32_PTHREADS
+#endif
+
#endif
#include <gc/gc.h>