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:
parent
44e30ef241
commit
eac7a5d039
1 changed files with 6 additions and 1 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue