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

Remove backward-compatible `GC_PTR' definition.

Fixes <http://bugs.gnu.org/11500>.
Reported by Kevin J. Fletcher <dev@kjfletch.co.uk>.

* libguile/bdw-gc.h (GC_PTR)[(defined GC_VERSION_MAJOR)
  && (GC_VERSION_MAJOR >= 7)]: Remove.
This commit is contained in:
Ludovic Courtès 2012-07-01 17:32:03 +02:00
parent 6922d92f96
commit e862ae1ceb

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 Free Software Foundation, Inc. /* Copyright (C) 2006, 2008, 2009, 2011, 2012 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
@ -46,12 +46,6 @@
# include <gc/gc_local_alloc.h> # include <gc/gc_local_alloc.h>
#endif #endif
#if (defined GC_VERSION_MAJOR) && (GC_VERSION_MAJOR >= 7)
/* This type was provided by `libgc' 6.x. */
typedef void *GC_PTR;
#endif
/* Return true if PTR points to the heap. */ /* Return true if PTR points to the heap. */
#define SCM_I_IS_POINTER_TO_THE_HEAP(ptr) \ #define SCM_I_IS_POINTER_TO_THE_HEAP(ptr) \
(GC_base (ptr) != NULL) (GC_base (ptr) != NULL)