diff options
author | Ludovic Courtès <ludo@gnu.org> | 2008-09-11 00:44:13 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2008-09-11 00:44:13 +0200 |
commit | ebd782132167a267828760d129804b52482f1cb7 (patch) | |
tree | c4a9ba4a1a56f0c88bf0ec8b4bd071448aaee007 | |
parent | e9d8bc255881aff0906c881f4557f9acfe4ef626 (diff) | |
download | guile-ebd782132167a267828760d129804b52482f1cb7.tar.gz |
Adjust to be usable with `libgc' 7.1.
* libguile/boehm-gc.h: Only include <gc/gc_local_alloc.h> with
`libgc' 6.x. Define `GC_PTR' for `libgc' 7.x+.
-rw-r--r-- | libguile/boehm-gc.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/libguile/boehm-gc.h b/libguile/boehm-gc.h index 49a369596..ea8ad512a 100644 --- a/libguile/boehm-gc.h +++ b/libguile/boehm-gc.h @@ -1,7 +1,7 @@ #ifndef SCM_BOEHM_GC_H #define SCM_BOEHM_GC_H -/* Copyright (C) 2006 Free Software Foundation, Inc. +/* Copyright (C) 2006, 2008 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 @@ -34,6 +34,15 @@ #endif #include <gc/gc.h> -#include <gc/gc_local_alloc.h> + +#if (defined GC_VERSION_MAJOR) && (GC_VERSION_MAJOR < 7) +/* This was needed with `libgc' 6.x. */ +# include <gc/gc_local_alloc.h> +#endif + +#if (defined GC_VERSION_MAJOR) && (GC_VERSION_MAJOR >= 7) +/* This type was provided by `libgc' 6.x. */ +typedef void *GC_PTR; +#endif #endif /* SCM_BOEHM_GC_H */ |