]> granicus.if.org Git - gc/commitdiff
Fix gc.h compatibility regression by adding GC_PTR
authorIvan Maidanski <ivmai@mail.ru>
Sat, 24 Mar 2012 06:01:22 +0000 (10:01 +0400)
committerIvan Maidanski <ivmai@mail.ru>
Sun, 25 Mar 2012 07:12:11 +0000 (11:12 +0400)
(Revert part of commit e35a417)

* include/gc.h (GC_PTR): Add typedef again (for source-level backward
compatibility useful for clients currently using gcc_boehmgc or
mono_libgc).

include/gc.h

index dfa0ff6ca592403b5e3e343e2be93400f0c1f552..b5c71f6036b2b291649d12cacc5eb96186408598 100644 (file)
@@ -44,6 +44,7 @@
   extern "C" {
 #endif
 
+typedef void * GC_PTR;  /* preserved only for backward compatibility    */
 
 /* Define word and signed_word to be unsigned and signed types of the   */
 /* size as char * or void *.  There seems to be no way to do this       */