1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

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.
This commit is contained in:
Andy Wingo 2013-03-09 22:27:59 +01:00
parent 44e30ef241
commit eac7a5d039

View file

@ -1,7 +1,7 @@
#ifndef SCM_BDW_GC_H #ifndef SCM_BDW_GC_H
#define 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 * This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License * modify it under the terms of the GNU Lesser General Public License
@ -37,6 +37,11 @@
routines. */ routines. */
# define GC_NO_THREAD_REDIRECTS 1 # define GC_NO_THREAD_REDIRECTS 1
#ifdef __MINGW32__
/* Rely on pthreads-w32. */
#define GC_WIN32_PTHREADS
#endif
#endif #endif
#include <gc/gc.h> #include <gc/gc.h>