]> granicus.if.org Git - gc/commitdiff
Fix HIDE_POINTER definition in gc.h
authorIvan Maidanski <ivmai@mail.ru>
Sat, 24 Mar 2012 08:08:45 +0000 (12:08 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sat, 24 Mar 2012 08:08:45 +0000 (12:08 +0400)
(Revert part of commit 14d2724)

* include/gc.h (HIDE_POINTER): Test GC_I_HIDE_POINTERS macro (as
a synonym to I_HIDE_POINTERS) again (remains for backward
compatibility only).

include/gc.h

index b2bc6d40d74d8b6aec6eed720e4e86b32bdc0c02..579f00373c6f558b50affb7f2f0bec03f15804e1 100644 (file)
@@ -1067,7 +1067,7 @@ typedef GC_word GC_hidden_pointer;
 /* allocator lock to avoid a race with the collector.                   */
 #define GC_REVEAL_POINTER(p) ((void *)GC_HIDE_POINTER(p))
 
-#ifdef I_HIDE_POINTERS
+#if defined(I_HIDE_POINTERS) || defined(GC_I_HIDE_POINTERS)
   /* This exists only for compatibility (the GC-prefixed symbols are    */
   /* preferred for new code).                                           */
 # define HIDE_POINTER(p) GC_HIDE_POINTER(p)