]> 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>
Sat, 24 Mar 2012 06:01:22 +0000 (10:01 +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 a78a4c4e75465fda774364ff3b39ea61f3ad1913..b2bc6d40d74d8b6aec6eed720e4e86b32bdc0c02 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       */